Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters by reference to an activeX control
Message
From
01/10/2002 09:36:46
 
 
To
01/10/2002 08:55:41
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00704244
Message ID:
00706332
Views:
13
Hello again,

i'm fine, thanks for asking.

One thing you could try out immediately is calling the method directly over the provided interface

something like this:


yourActiveX = CREATEOBJECT("someGuywhohasn'tautomationinhismindwhenhewrotethisobject:).CBlumbing")

iInterface = GETINTERFACE(yourActiveX,'ITheInterface')

&& trying the combinations of the last messages
&& ShorttoNUm and so on
iInterface.Method(@X)


maybe the Fox uses the IDispatch Automation interface when calling the method, if so that would result in another conversion from the type you passed into - into Variants before the method get called through the Invoke Method of IDispatch .. and of course this would destroy all our efforts of passing the correct type

the point is when you use GETINTERFACE you ensure that you directly call the method, which seams to be neccessary in this situation ...

Hope this helps, otherwise if you could e-mail me the type library i could do some further testing/exploration (haven't found much on VT_PTR even at Google)

Regards

Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform