Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL woes - trying to convert a VB example to Foxpro
Message
De
31/08/1998 21:25:40
 
 
À
31/08/1998 18:22:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00131712
Message ID:
00131743
Vues:
21
You cannot pass a VFP array to a dll function.

You must use the DECLARE-DLL command to declare the dll function(s) and here are the equivalences:
        VFP (in DECLARE) VFP (normal)
        ---------------- ------------
double: DOUBLE           Numeric
long:   INTEGER          Numeric
byte:   STRING           String
You have to simulate the arrays with using strings. Strings must be passed by reference.

Vlad

>I am trying to use a DLL from FoxPro, that was built for Visual Basic. The DLL requires passing arrays and variables as double, long and byte formats. These formats are from the Visual Basic example.
>
> Visual Basic
> Dim a[2] as double
> Dim b[2] as long
> Dim c as byte
>
>In FoxPro, we can only initialize variables as numeric, string or logical. how can I initialize a FoxPro Variable as Double?
>
>
>Steve Ellis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform