Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and COM objects
Message
De
15/07/1998 14:39:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00117378
Message ID:
00117742
Vues:
21
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform