Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL function Call error
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00246510
Message ID:
00246527
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform