General information
Category:
Windows API functions
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
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