Example:
string FooBar(long l) - returns a string from index l
FooBar(long l, string s) - sets the string.
In my code, if I use the following:
string strTemp
long l
strTemp = "HI"
l = 5
ole_1.object.FooBar(l, strTemp)
I get an error message stating I did not pass the correct number
of arguments.
Does anyone know if there is a problem with overloaded functions
inside OCXs and PB 6.5? If so, is there a workaround?
What gives?
TIA
Jeff
iome...@iometrics.com
Roy
The ActiveX (OCX,COM etc) interface does not support overloaded functions.
If you build a pb object with function overloading using inheritance (or
otherwise), the COM generator flattens out the public funtions to expose
them all in the descendant.
This is a funtion of COM and not PB. A COM method must be unique to an
interface.
Once you have
string FooBar(long l) - returns a string from index l
you can't have
FooBar(long l, string s)
Hope this Helps
Michael
comms wrote in message <366B5053...@ozemail.com.au>...
>Jeff,
>
>The ActiveX (OCX,COM etc) interface does not support overloaded functions.
>
> Michael