Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DECLARE Function...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00289095
Message ID:
00289106
Vues:
30
>I'm having problems converting a DLL declaration from VB to VFP.
>
>VB Code: DECLARE FUNCTION WEBAPITransaction LIB "webapiclient.dll" (ByVal sendbuf As Any, ByVal sendlen As Long, ByRef recvbuf As Any, ByVal recvlen As Long, ByRef actlen As Long) AS LONG
>
>VFP Code: DECLARE LONG WEBAPITransaction IN "webapiclient.dll" STRING sendbuf, LONG sendlen, STRING recvbuf , LONG recvlen, LONG actlen
>
>Any ideas? I used STRING (VFP) in place of ANY (VB) because the data types of the values passed are strings - is there a Variant data type in VFP...

Hi Aaron,

Just a couple of ideas. First, you don't need to enclose the file name of the DLL in quotes. Second, STRING recvbuf needs to be STRING @recvbuf since it's being passed by reference.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform