>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