Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Array to .dll
Message
From
01/09/2000 07:58:38
 
 
To
01/09/2000 02:16:03
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgia, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00411603
Message ID:
00411645
Views:
23
AFAIK, you can't pass an array to/from a COM, especially if the tiers are from different language. You need to convert it in a form that can be transfered to/from a COM, like a string, XML or an ADO recordset.

Look also at thread #391892 in the VFP forum.

HTH
>I am creating a wrapper class ActiveX .dll in VB to use in a VFP program.
>
>I am having problem getting an array from VFP to a .dll sub.
>The sub in the .dll takes 4 parameters with the array being the 3rd.
>
>sub recadd(dname$, tname$, (array goes here) , mlen)
>
>In the VFP code I have created a two demensional array called db_stru and filled it with field names and field values. The call is...
>
>loAccess.recadd(mdbname,mtname, (the array is past here), m_fldnum)
>
>How do I pass the array and then in the .dll how can I use it?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform