Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Variant/Long to COM Object
Message
From
03/12/2008 03:57:43
 
 
To
01/12/2008 18:15:40
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Application:
Desktop
Miscellaneous
Thread ID:
01364969
Message ID:
01365324
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform