Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL woes - trying to convert a VB example to Foxpro
Message
De
02/09/1998 00:38:33
 
 
À
02/09/1998 00:13:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00131712
Message ID:
00132204
Vues:
13
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform