Solved

Register An ActiveX Control

Posted on 1998-11-09
9
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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!

 
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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 47
Generic progress indicator 6 119
Whole sheet autoscrub still needed 19 54
post4 challenge 28 113
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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