>>>I have a COM server that has a method that returns a pointer to float in a Variant.
>>>
>>>The pointer to float is actually an array of 32-bit floats.
>>>
>>>Is there some way that I can get access to that array in VFP?
>>>
>>>Thanks,
>>>Jim
>>
>>You may need to use COMARRAY() to specify if it is zero based etc.
>>
>>ie:
>>
>>local array aMyArray[1]
>>COMARRAY(oMyCOM,11)
>>oMyCOM.MyMethod(@aMyArray)
>>
Cetin
>
>Cetin,
>
>thanks for your quick reply.
>
>The COM object method returns the pointer like so:
>
>pArray = oMyCom.GetDataArray()
>
>How can COMARRAY help me with this?
>
>Thanks,
>Jim
A follow-up.
If I connect to the COM server using a C++ client, pArray is the address of the array in the COM server. I can view and manipulate all of the elements in the array.
I would like to be able to do the same thing with a VFP COM client.
How can I do this?
There is a lot of VFP documentation about how to write a COM server, but very little about COM clients and passing data between the client and server.
Thanks,
Jim