Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL function Call error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00246510
Message ID:
00246527
Vues:
12
>Hi All,
>
>I have a DLL (build in MS Fortran and not by me) and I'm trying to use its functions. This is what I do:
>
>DECLARE INTEGER DLLFunction IN FORTRAN.DLL INTEGER @tnResult
>
>Now I try to use this function (lnOK = 0 and lnResult = 0)
>
>lnOK = DLLFunction(@lnResult)
>=DLLFunction(@lnResult)
>
>Both of the above methods trigger: Declare DLL call caused an exception. (Error 2027). The only way that seams to work is:
>
>?DLLFunction(@lnResult)
>
>But I don't want all the 0's on my screen. What could cause these different behaviours en how to can I fixed it??

A Patch - You could create a window located outside the screens cordinates so its not visible to the user. Make it active and call your fortran function.
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform