|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Finding out a DLL's name.
Hi Guys,
How do you find out a DLL's 'application name' just by looking at the file? Lets say I have a file called 'Example.DLL', and that file had the class 'Test' inside it. So, you would access it from other applications by doing the following... Code:
Dim xObj as Object
Set xObj = CreateObject("XXXXX.Test")
So, how would I find out what value to replace the 'XXXXX' with? Thanks! (p.s. As it happens I do know what the 'Application Name' is in this case, but I want to learn a way of programming an automated way of picking out the 'Application Name' from a DLL file)
__________________
LozWare Website Directory Whooo! Free submissions, no recip needed. I'm a nice guy
|
|
#2
|
|||
|
|||
|
I usually just search the registry for the dll filename. Some dll's won't have progid's if they aren't component dll's, and many dll's have more than one associated progid.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
||||
|
||||
|
Could you tell me where about's to search in the registry?
|
|
#4
|
|||
|
|||
|
I search the whole registry. Open regedit, click on the top of the tree, choose find, enter the dll filename. If the dll is registered you should find one or more registry entries in HKEY_CLASSES_ROOT\CLSID
For example, if you search for scrrun.dll you'll find 2 or 3 clsid's that contain scrrun.dll. Each has a subkey ProgID where you can view the associated progid. |
|
#5
|
||||
|
||||
|
Cheers
![]() |
|
#6
|
|||
|
|||
|
There may be some automated progid finder, there are a bunch of tools that came with visual studio 6 that allow object browsing/walking/etc but I don't know much about using them all.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Finding out a DLL's name. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|