Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL woes - trying to convert a VB example to Foxpro
Message
From
02/09/1998 00:38:33
 
 
To
02/09/1998 00:13:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00131712
Message ID:
00132204
Views:
14
The arrays passed to a DLL function must have the elements allocated in a sequence in the memory. VFP arrays do not follow this rule, so, you cannot pass them directly. Instead, use a string long enough (a VFP string is a contigous memory area) and fill it with the values that should go into the array.

Vlad

>In VB you can pass arrays in a DLL., for example:
>
> Dim NumCol(1)
> Declare Integer loadlp In "frontmip.dll" String@probname, Integer numcols
> retval=loadlp(probname, NumCols(0))
>
>Your saying that Foxpro cannot pass an arrays like VB. I must
>simulate an array with a string varaible. Can you please give me an
>example on the structure of a string array, it eludes me. The array I need is only one dimensional.
>
>Thank you for your help.
Previous
Reply
Map
View

Click here to load this message in the networking platform