Link to home
Start Free TrialLog in
Avatar of joe_s
joe_s

asked on

Error registering dll & ocx

I developed an application w/ VB5 (NT4.0 ws). I used the setup wiz to create an install. This app was working fine. Now when I try to install it on Win95 I get the message "An error occurred with registering the file 'c:\windows\system\threed32.ocx". I also get this message with mfc40.dll and grid32.ocx. If tried unregistering the dll with regsvr32 /u and I've tried registering manually with regsvr32 and regocx32. I get no feedback at all from regocx32 but regsrv32 says "loadlibrary ("mfc40.dll") failed. GetLastError returns 0x00000485" when I try to register or unregister. I suspect the OCX's need the dll. I've also tried running regclean. Any ideas anyone??? Thanks for the help
Avatar of joe_s
joe_s

ASKER

Edited text of question
are you using any C++ DLL's? if yes, just make sure that they are in build in release mode. generally they will be build in debug mode.
Avatar of joe_s

ASKER

I'm not using C++ DLL's that I've created... There might be some others besides mfc40.dll which are created from C++.
If you have not applied the Service Packs to Visual Basic, you might get this error...
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Error during register come with the following
Some times the dll or ocx require other files which not found
Some times the dll or ocx not to visual basic
some times the dll or ocx corrupted

Avatar of joe_s

ASKER

Fantastic answer!!!!

Thanks for the help and for the info on sysinternals.com. The missing file was msvcirt.dll which prevented registering of the OCX's. You were right on the button.

Thanks again.
Glad I could help and thanx for the points...