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

VB6 Pro can't find DLL at runtime 1

Status
Not open for further replies.

Kindaslow

Programmer
Jul 29, 2008
2
US
I am porting a VB5 project to VB6 on a computer that is not the one where the VB5 project was developed. When I run the project, I quickly get run time error 53: File not found: CBW32.DLL.

CBW32.DLL exists on my machine in several places, including C:\Windows\System32 and the project directory where my project is. CBW32.bas and CBW32.lib are embedded in the project itself. Can anyone suggest why VB6 Professional can't find it at runtime? Any suggestions will be most welcome.
 
Is it registered in the Registry?

Is the file located in the same folder as the EXE that calls it?

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
Thanks - I think that gives me some direction. But, yes, the DLL is in a number of places, including C:\Windows\System32, plusanother copy of it in the project directory, plus the source for the DLL is in project file itself.

I ran regsvr32 but got the message "failed - the specified procedure could not be found".

I'm not really certain whether the DLL is registered or not - I've been doing Unix programming for over 30 years, but I am pretty much of a newbie on Windows, so I'm not sure how to tell whether a DLL is registered.
 
start -> program -> run -> "cmd" {enter}

c:\>"c:\winnt\system\regsvr32.exe c:\winnt\system\CBW32.DLL"

Not sure whether your error is from not finding the cmd regsvr32 or the object .dll

But both MAY need "fully qualified pathnames", if your path environment has changed it may not be able to find the files.

Both should reside in the winnt\system32 directory, you can substitute "windows" for "winnt" in the commands depending on the version of windows you're running.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top