Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare dll call caused an exception
Message
From
23/01/2005 19:01:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979001
Message ID:
00979883
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform