General information
Category:
ActiveX controls in VFP
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only