Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters by reference to an activeX control
Message
De
01/10/2002 09:36:46
 
 
À
01/10/2002 08:55:41
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00704244
Message ID:
00706332
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform