Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Error Registering ActiveX Control

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
jonjon
Asked:
jonjon
  • 5
  • 4
  • 2
1 Solution
 
jonjonAuthor Commented:
Edited text of question
0
 
psdavisCommented:
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
 
psdavisCommented:
OK, how about oleaut32.dll and olepro32.dll!

Good luck
Phillip



0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jonjonAuthor Commented:
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
 
chensuCommented:
Error 0x00000485 means "One of the library files needed to run this application cannot be found.".

You need mfc42.dll and msvcrt.dll.
0
 
psdavisCommented:
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
 
jonjonAuthor Commented:
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
 
psdavisCommented:
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
 
jonjonAuthor Commented:
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
 
psdavisCommented:
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
 
chensuCommented:
>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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now