Solved

Register An ActiveX Control

Posted on 1998-11-09
9
347 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 92
Tab names are off by one 5 53
FizzBuzz challenge 9 76
scoreUp challenge 14 57
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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

911 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

23 Experts available now in Live!

Get 1:1 Help Now