Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare dll call caused an exception
Message
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:
00979004
Vues:
47
You're passing strings by reference for parameters DECLAREd as passed by value.

>The declaration is
>
>declare integer  BUICScan  in BUICAP32.DLL integer iJobType, ;
>                             string lpFront, string lpLenFront, ;
>                             string lpBack, string lpLenBack, ;
>                             string lpCode, string lpLenCode
>
>the calling code is:
>    m.nretval=buicscan(THIS.nscan_opt,;
>      THIS.cfront_fn, ;
>      @temp_cfront_len, ;
>      THIS.cback_fn, ;
>      @temp_cback_len, ;
>      @temp_cmicr_text, ;
>      @temp_cmicr_len)
>
>with the values translating to:
>=buicscan(5,"F.TIF"," "," "," "," "," ")
>
>It takes about 3 seconds and then bombs with the "dll caused exception"
>
>Please tell me what the obvious thing I'm missing is.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform