Solved

Register An ActiveX Control

Posted on 1998-11-09
9
343 Views
Last Modified: 2013-11-20
I cannot register an ActiveX control I wrote on another machine (error 0x0485, cannot find one or more library file). How do I find out exactly what files are missing?
0
Comment
Question by:lsean
9 Comments
 
LVL 7

Expert Comment

by:psdavis
Comment Utility
Use the new program sent out with Visual C 6 called Depends.exe.  It will give you a complete list of dependent DLLs!

Phillip
0
 

Author Comment

by:lsean
Comment Utility
Sorry, I am still using VC++ 5.0 and won't be upgrading to version 6 in the near future. Your solution probably works, but I cannot verify it right now.
0
 
LVL 7

Expert Comment

by:psdavis
Comment Utility
I'll tell you what, how about I guess which DLL's are missing?

Try olepro32.dll and oleaut32.dll

Phillip

0
 
LVL 16

Expert Comment

by:heyhey_
Comment Utility
What language do you use ???

also does
>> (error 0x0485, cannot find one or more library file)
mean that you need some DLL or some other .lib kind of file ???

(I still think that Filemon can help you - you'll see which files your component is trying to use, but can't find ...)
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 7

Expert Comment

by:psdavis
Comment Utility
>> (error 0x0485, cannot find one or more library file)
mean that you need some DLL or some other .lib kind of file ???

It would be a DLL.

Phillip

0
 

Author Comment

by:lsean
Comment Utility
Philip,
    Sorry again.  All the libraries I can think of (including olepro32.dll and oleaut32.dll) are already there. I even build a debugging version of the program regsrv32.exe trying to trace down which file was missing.  The failure occurred in the call to the LoadLibrary( ) function, but I could not find any information on the missing file.
0
 
LVL 7

Expert Comment

by:psdavis
Comment Utility
Send me the activeX control and I'll run depends on it, OK?

phillip@afix.net


0
 
LVL 1

Accepted Solution

by:
sudhirbrat earned 200 total points
Comment Utility
When you install and register a control, you should also register OLEPRO32.DLL. Use the same procedure for registering this DLL as you did for your .OCX file. Perform this registration step and try registering ur activeX.

If your control uses one of the stock property pages, you should also register MFCx0.DLL. Unlike OLEPRO32.DLL, you should always register this DLL, even if it is already installed.

0
 

Author Comment

by:lsean
Comment Utility
Thanks for all the help I got, especially the suggestions from sudhirbrat and philip. There are multiple causes for my problem. On some machines it is because some ole and mfc dlls were not registered, as pointed out by sudhirbrat.  On others it is because oracle client software(used by my ActiveX control) was not installed properly.
Thanks again !!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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. …
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

12 Experts available now in Live!

Get 1:1 Help Now