Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare dll call caused an exception
Message
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:
00979099
Views:
35
Raphael,

For the one given a specific length have you tried making sure your parameters are at least that big?

ala:
FLen = replicate(chr(0), 255)

Also are you sure it's valid to pass an empty string for the arguments into the function? That maybe causing it to crash as well.

Also sometimes the docs are wrong.. they may say ByVal but really need to be ByRef.

>Here is allof what I could find (i am not a vb person)
>
Public Declare Function BUICScan& Lib "BUICAP32.DLL" (ByVal iJob&, ByVal lpFront$, ByVal FLen$, ByVal lpBack$, ByVal BLen$, ByVal LpCode$, ByVal LpLen$)
>
>'// Declares for BuicScan
>    Dim FLen As String * 255
>    Dim BLen As String * 255
>    Dim CodeLen As String * 255
>    Dim mstrMICR As String * 255
>    Dim mstrFront As String
>    Dim mstrBack As String
>
>
mlngReturn = BUICScan(mlngSides, mstrFront, FLen, mstrBack, BLen, mstrMICR, CodeLen)
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform