Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Receiving an array from COM server
Message
 
À
05/10/2010 16:01:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01484052
Message ID:
01484063
Vues:
51
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform