Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I determine what dll's and ocx's has been registered?

Status
Not open for further replies.

rvr

Programmer
Jan 26, 2000
16
ZA
Hi,

Is it possible to determine through code what dll's and ocx files has been registered? I need to be able to run through the list of registered files. It would be even better if I can also determine which files was not registered (but that might be pressing it!).

Any suggestions would be great.

Thanks in advance,
RVR [sig][/sig]
 
what actually you want to do? Are you saying that you have a fix list of OCX and Dll's in your application . One of your utility determine that either they are register or not, then you can use API calls to find in the registery and if not found can register.
 
I have a program that should register dll's sent in the same setup file as the program. But I suspect that the dll's is not registered at all. I would like to write something like a diagnostic tool to look for the dll's and determine if they have been registered or not.
This setup file was sent to a customer in another country, so it is not something that I want to determine on my own machine. I want to use this tool in situations like these when it happens in future. [sig][/sig]
 
Sorry, I'm new to VB - primarily C++ background. But my 2 cents - what happens when you call CreateObject? Can't you try a CreateObject call and if it fails you can assume there's something wrong with that DLL/OCX? [sig][/sig]
 
Checking the registry for REGISTERED components is your way to go - this is where the information is held.

Simon [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top