Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dll subroutine suddenly awol

Status
Not open for further replies.

RobBroekhuis

Technical User
Oct 15, 2001
1,971
US
I have an Excel macro that calls on a dll created in Fortran. The dll is compiled, and placed in my c:\winnt\system32 folder. Everything worked just ducky, until suddenly today I'm getting an error 48: "File not found: itmsgmod.dll". The file is where it has been all along; I recently recompiled with minor changes, but nothing that would have changed entry points etc. Any ideas what may be going on here?

Rob
[flowerface]
 
Afraid not. The location of the dll hasn't changed, the wintt\system32 folder is still in the system path. I'm suspecting it may be a problem in the DLL itself, even though there too nothing has changed that I'm aware of - but maybe a compiler setting got mangled? Not sure how to troubleshoot that, though. It would help if the error message were more descriptive...

Rob
[flowerface]
 
Did you try to remove and then recheck the reference ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I'm not sure what you're suggesting, PHV. As far as I know, there is no reference involved - just a line of code:

Declare Sub ITMSG Lib "itmsgmod.dll" (inp1 As Double, inp2 As Double, out1 As Double, out2 As Double, out3 As Double, out4 As Double, out5 As Double)

and a subsequent call to the ITMSG subroutine. The error occurs at runtime when the subroutine is called.

Rob
[flowerface]
 
Nope. In any case, I was able to resolve the problem. Using a DLL export viewer, I found that indeed there were no subroutines being exported. I don't know why, but a "rebuild all" on the fortran end created a working DLL, where a simple build didn't work. Another note added to my "when problem x occurs, try y" log :)

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top