Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when passing array of string in param. to an ActiveX
Message
From
16/06/1999 11:23:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Error when passing array of string in param. to an ActiveX
Miscellaneous
Thread ID:
00230443
Message ID:
00230443
Views:
113
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
Map
View

Click here to load this message in the networking platform