Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when passing array of string in param. to an Activ
Message
De
16/06/1999 23:27:10
 
 
À
16/06/1999 11:23:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00230443
Message ID:
00230710
Vues:
20
>I try to pass an array of string to a COM.
>I use VFP 5.0a with the pgm vfpcom.comutil.
>
>When I try it, I receive this message :
> The error provided the following information
> 1426
> OLE error code 0x80020005: Unknown OLE status code.
> 80020005: Unknown OLE status code
>
>I try it in VB and everything is OK.
>Did it has a difference with the use of string or array between VB and VFP.
>
>I try it with VFP 6.0 and COMArray(), but the result is the same.
>
>What can I do ??
>
>Stephane Chouinard
>Compagnie miniere Quebec Cartier
>chouinard.stephane@qcmines.com
>
>My code is :
>
>x = createobject("vfpcom.comutil")
>MyActiveX = createobject(....)
>oEvents = createobject(.....)
>= x.BindEvents(MyActiveX,oEvents)
>
>public myArray
>dimension myArray[2]
>
>myArray[1]="test"
>myArray[2]="test.value"
>
>MyActiveX.TheMethod(@MyArray) <-- It generate the Error.

I don't see COMARRY in your code... You need to know if your ActiveX control wants zero based array or one based... if it is VC++ or VB or VJ++ probably needs zero based array... use the comarray code that passes the array by reference as a Zero based array.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform