Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and COM objects
Message
From
15/07/1998 14:39:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00117378
Message ID:
00117742
Views:
22
>>I'm having some problems passing arrays to a COM object under VFP 5.0a.
>>
>>I need to use a COM object that takes a SAFEARRAY in one of its properties, but when I initialize the array and pass its name to the mentioned property, I get an OLE error saying that the 'Parameter is incorrect'. The creator of the COM object says that it works with VB and VC++.
>>
>>Has anybody tried this? Do I have to wait for VFP 6.0 to pass arrays to a property of type variant?
>>
>>TIA.
>>
>>A.Lozada
>
>Antonio,
>
>Yes, you will need to wait for VFP6 to pass arrays to a COM object.

I wish! I have tried sending safearrays to C++ clients and servers using the DevCon VFP6 without success. I need to send pointers to safearrays to servers and 'fill in' safearray pointers from clients, but couldn't make it work, had to resort to BSTRs. If anybody has done this with safearrays, PLEASE post the technique.

Gary Foster
Pointsource Consulting
gary_foster@starkey.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform