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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file not found???!! 1

Status
Not open for further replies.

cl8855

Programmer
Nov 28, 2000
47
US
ok I have some existing code calling a .dll file:

Public Declare Function LogGet Lib "somedll.dll" (ByVal parma As Long, ByVal parmb As String, ByRef parmc As Integer) As Integer

This worked fine forever, but all of a sudden on a new computer I just got (win2k) everytime that function is called it gets an "error 53 - file not found",

but somedll.dll is in the path as it always is. I even fully qualify as c:\dir\somedll.dll and that still comes back with file not found. What the heck is going on?
Is it a win2k vs NT thing? My coworker just reinstalled his PC same way and isn't having this problem. no differences at all in setups.

ideas???
 
"load library failed ... the specified module could not be found"

I am soooo confused.
 
Regsvr32 will register COM based dll files (activeX).

somedll.dll isn't an activeX one (if it were you wouldn't need to declare it) So your error above is not a problem!

So, is somedll on the machine. I assume so!

Where is it? Is it in the same place as on the other machine (that works). I would suggest that you check the %path% variable in the environment, as windows will search the path fro dlls if they aren't in the windows directory.

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
thanks,
everything was correct in the path and the dll was installed just fine.


I just used a program I found out there "dependencywalker"
to find out that there was another dll in dependency that wasn't installed.

Thanks all
 
As you have discovered, it is a misleading error message. You get an error on the 'first' file, even though the actual error is caused by a file the 'first' file is dependant on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top