>>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