Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hello,
"declare integer BUICScan in BUICAP32.DLL integer iJobType, ;
string lpFront, LONG *lplLenFront, ;
string lpBack, LONG *lplLenBack, ;
string lpCode, integer *lpiLenCode"
this declaration is a mix betwenn FoxPro & C syntax ??!!
a C declaration looks like:
int _stdcall BUICScan(int iJobType, char *lpFront, long *lplLenFront,
char *lpBack, long *lplLenBack, char *lpCode, int *lpiLenCode);
if this is the correct declaration (which i can only guess from what you've provided)
the correct translation would be:
DECLARE INTEGER BUICScan IN BUICAP32.DLL ;
INTEGER iJobType, ;
STRING @ lpFront, ;
INTEGER @ lplLenFront, ;
STRING @ lpBack, ;
INTEGER @ lplLenBack, ;
STRING @ lpCode, ;
INTEGER @ lpiLenCode
and the calling syntax would be:
LOCAL lcFront, lnLenFront, lcBack, lnLenBack, lcCode, lnLenCode, lnRetVal
STRORE SPACE(255) TO lcFront, lcBack, lcCode
STORE 255 TO lnLenFront, lnLenBack, lnLenCode
lnRetVal = BUICScan(theJobType,@lcFront,@lnLenFront,@lcBack,@lnLenBack,@lcCode,@lnLenCode)
Regards
Christian
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement