General information
Category:
ActiveX controls in VFP
Title:
Error when passing array of string in param. to an ActiveX
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.
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