Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Variant/Long to COM Object
Message
De
03/12/2008 03:57:43
 
 
À
01/12/2008 18:15:40
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Application:
Desktop
Divers
Thread ID:
01364969
Message ID:
01365324
Vues:
10
Hi,

try this ...
LOCAL lnParam1, lnParam2, lnParam3
lnParam1 = '' && set to whatever datatype you expect beeing returned 
lnParam2 = ''
lnParam3 = 0 && long

&& assuming loObj holds a ref to your COM object
LOCAL loInterface 
loInterface = GETINTERFACE(loObj, 'ITheInterfaceNameYouHavetoLookupIntheObjectBrowser')
loInterface.TheFunctionYouWannaCall(@lnParam1, @lnParam2, @lnParam3)
If this doesn't work there's no way around the VB wrapper ....

Christian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform