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\threed3 2.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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
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.
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...
ASKER