Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 670
  • Last Modified:

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
0
joe_s
Asked:
joe_s
1 Solution
 
joe_sAuthor Commented:
Edited text of question
0
 
vmanoCommented:
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.
0
 
joe_sAuthor Commented:
I'm not using C++ DLL's that I've created... There might be some others besides mfc40.dll which are created from C++.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
mcixCommented:
If you have not applied the Service Packs to Visual Basic, you might get this error...
0
 
MirkwoodCommented:
For sure, you are missing a dll or ocx.
Error 485 means that One of the library files needed to run this application cannot be found.
The easiest way to found out is to use a utlity like filemon. This utility can be found at www.sysinternals.com
Start filemon or ntfilemon before you try to register. Filemon will show you what file could not be opened. That is the file that is missing. BTW filemon can be redirected to a file using filemon > mon.out

The most likely candidates are: MSVCRT40.dll, oleaut.dll, advapi.dll
Is win95 still running correctly otherwise. Can you start word or powerpoint and stuff like that?

0
 
majed100598Commented:
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

0
 
joe_sAuthor Commented:
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.
0
 
MirkwoodCommented:
Glad I could help and thanx for the points...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now