Solved

Register An ActiveX Control

Posted on 1998-11-09
9
348 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
ID: 1324398
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
ID: 1324399
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
ID: 1324400
I'll tell you what, how about I guess which DLL's are missing?

Try olepro32.dll and oleaut32.dll

Phillip

0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 16

Expert Comment

by:heyhey_
ID: 1324401
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
 
LVL 7

Expert Comment

by:psdavis
ID: 1324402
>> (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
ID: 1324403
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
ID: 1324404
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
ID: 1324405
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
ID: 1324406
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 84
repeateFront java challenge 31 92
sumNumber challenge 16 122
sum13 challenge 24 105
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

15 Experts available now in Live!

Get 1:1 Help Now