Solved

Error Registering ActiveX Control

Posted on 1998-07-23
11
358 Views
Last Modified: 2013-11-20
Getting the following error when I try to register my TestX.ocx ActiveX control with regsvr32.exe or with the Tools/"Register Control" macro in Visual Studio.  

 LoadLibrary("D:\TestX\Debug\TestX.ocx")
 GetLastError returns 0x00000485

It's been a while since I have done this and can't remember how to look up this hex error code.
TestX is an ActiveX control that was created from AppWizard in DevStudio.
Any ideas on how I can get this ActiveX control registered properly so that I can insert it into other container applications?
0
Comment
Question by:jonjon
  • 5
  • 4
  • 2
11 Comments
 

Author Comment

by:jonjon
ID: 1319665
Edited text of question
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1319666
Ahh.. My favorite.

You're missing a DLL file!  Probably one that ActiveX MFC Requires.  I'll respond right back and give you the probable names!

Phillip

0
 
LVL 7

Expert Comment

by:psdavis
ID: 1319667
OK, how about oleaut32.dll and olepro32.dll!

Good luck
Phillip



0
 

Author Comment

by:jonjon
ID: 1319668
Sorry Phillip, that did not fix the problem. I already had those two dll's in my /windows/system directory, which is in my PATH. Any other ideas?
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1319669
Error 0x00000485 means "One of the library files needed to run this application cannot be found.".

You need mfc42.dll and msvcrt.dll.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 7

Expert Comment

by:psdavis
ID: 1319670
I'm going to assume msc42.dll and msvcrt.dll was already on your system.  

Are you trying to compile the ActiveX on your machine with the Developer's studio or on another machine without Developer's studio.

If it is with the developer's studio, then the question is "do you get this message when it registers during compilation or only later".  If it is without developer's studio, then look at your "link" options to see if you include any libraries.  Then the DLL libraries that it links to are missing.

Phillip
0
 

Author Comment

by:jonjon
ID: 1319671
Chensu,  How do you look up the error messages? Don't you have to convert the hex number and look it up in some *.err file?
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1319672
I'm not chensu, but...

Convert the 485 to decimal 1157.

Look up Online documentation
"System Errors - Numerical Order"

1157 One of the library files needed to run this application cannot be found.  ERROR_DLL_NOT_FOUND
 
So, you're "Missing a DLL file"!

Phillip

0
 

Author Comment

by:jonjon
ID: 1319673
Got it!  It was missing a proprietary DLL that I created previously.  Thanks to Phillip(psdavis) and chensu.  I would like to split the points 50:50 but I don't know how.  psdavis gave me more helpful information on solving the problem, but chensu had the question locked with his answer.  I appreciate both responses.
jonjon
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1319674
I'm not bitter, but there are ways to do that next time.

1) If you want to split the points, you can get a hold of Support and tell them that you want to split them and then add another question like "Answer for %Name%" and then that person can respond and receive the answer.

2) Reject the answer and let the other person receive the due credit.

Phillip

0
 
LVL 23

Expert Comment

by:chensu
ID: 1319675
>How do you look up the error messages?

Visual C++ comes with a useful utility "Erro Lookup". Select it from the menu Tools. Type 0x00000485 in the edit box. That's it.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

20 Experts available now in Live!

Get 1:1 Help Now