Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare dll call caused an exception
Message
De
23/01/2005 19:01:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00979001
Message ID:
00979883
Vues:
23
Hello,

i don't know this api ..
but the parameter naming convention lead me to the idea that the lpLen* parameters are integers that indicate how big the buffers are you passed in in lpFront, lpBack & lpCode.

There are some functions in the normal Win32 Api that work the same.

you may try this:

DECLARE INTEGER BUICScan IN BUICAP32.DLL ;
INTEGER iJobType, ;
STRING @ lpFront, ;
INTEGER lpLenFront, ;
STRING @ lpBack, ;
INTEGER lpLenBack, ;
STRING @ lpCpode, ;
INTEGER lpLenCode

LOCAL lcFront, lnLenF, lcBack, lnLenB, lcCode, lnLenC, lnJobType

STORE SPACE(255) TO lcFront, lcBack, lcCode
STORE 255 TO lnLenF, lnLenB, lnLenC
lnJobType = whatever ..

? BUICScan(lnJobType,@lcFront,lnLenF,@lcBack,lnLenB,@lcCode,lnLenC)


just a guess .. but maybe it helps ..

if you would post the C declaration there will be enough people here to convert it easily.

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform