> > How can I expose both overloaded functions in ActiveX?
>
> AFAIK, COM does not support overloaded interface members at all.
I don't think COM will have a problem. COM doesn't actually care /
what/ the functions are called - just their position in the vtable.
The problem is that IDispatch doesn't support overloaded functions,
and JScript uses IDispatch.
To the OP: You are going to have to change the name of one of the
functions.
Maris Janis Vasilevskis - 15 Mar 2008 11:08 GMT
Thanks to all. I found a solution.
In C#, I define
public void MyMethod([In,Optional]ref object arg1, [In,Optional]ref object arg2) {...}
It accepts JScript calls with different number of args.
Mahris
Martin Bonner wrote 2008.03.14. 16:56:
>>> How can I expose both overloaded functions in ActiveX?
>> AFAIK, COM does not support overloaded interface members at all.
[quoted text clipped - 7 lines]
> To the OP: You are going to have to change the name of one of the
> functions.