Solved

Error registering dll & ocx

Posted on 1998-10-14
8
647 Views
Last Modified: 2013-12-26
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
Comment
Question by:joe_s
8 Comments
 

Author Comment

by:joe_s
ID: 1487650
Edited text of question
0
 
LVL 3

Expert Comment

by:vmano
ID: 1487651
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
 

Author Comment

by:joe_s
ID: 1487652
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
 
LVL 4

Expert Comment

by:mcix
ID: 1487653
If you have not applied the Service Packs to Visual Basic, you might get this error...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 13

Accepted Solution

by:
Mirkwood earned 250 total points
ID: 1487654
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
 
LVL 2

Expert Comment

by:majed100598
ID: 1487655
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
 

Author Comment

by:joe_s
ID: 1487656
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
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487657
Glad I could help and thanx for the points...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now