Solved

Error registering dll & ocx

Posted on 1998-10-14
8
649 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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
 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

773 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