Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when passing array of string in param. to an Activ
Message
From
17/06/1999 09:19:40
 
 
To
17/06/1999 07:56:49
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00230443
Message ID:
00230833
Views:
20
>>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.
>
>
>I try it with all the possibilities of COMARRAY (0,1,10,11), but the problem is always there. The problem seems to be that VB (COM) don't understand my array. The COM Want to receive an array of strings and it don't understant the format of my array. Did I have to change my COM (pass string instead of array of strings),... ??

Ah... is it an array of pointers to strings? Or, is it an array of strings? You may have to populate the elements of the array with space(x). x would be the length that they want the strings to be.

If it is an array of pointers to strings you may want to ask in the API section how to pass that... that is simmilar to stuff you need to pass to alot of C interface API functions.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform