|
-
Nov 2nd, 2001, 11:13 AM
#1
Thread Starter
Fanatic Member
ActiveX DLL - GUID
Does anybody know how to find out the GUID of a particular (compiled) ActiveX DLL?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Nov 2nd, 2001, 11:50 AM
#2
Lively Member
Select TypeLib Information in the Project References tab and paste the following code into form_load, this gets the GUID for stdole2.tlb so just change the path to your DLL. You can use this object with a prog id (i.e. "Excel.Application") but I can't remember off the top of my head how to do it but there is info on this on msdn online, just search for TypeLibInfo
Private Sub Form_Load()
Dim objTL As New TLI.TypeLibInfo ' Info obj about type library
objTL.ContainingFile = "c:\winnt40\system32\stdole2.tlb"
Debug.Print objTL.Guid
End Sub
-
Nov 2nd, 2001, 12:16 PM
#3
Thread Starter
Fanatic Member
Cheers!
That helped a lot.
Incidentally, is it possible to get at this information without using VB (through some utility or something)?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Nov 2nd, 2001, 12:24 PM
#4
CLSID and so on are in he REgistry. Start REGEDIT, then use the search facility, look for the name you gave your interface, or whatever other item you're looking for.
All of it is in
HKEY_CLASSES_ROOT
-
Nov 5th, 2001, 03:42 AM
#5
Thread Starter
Fanatic Member
Ah!
But what if you have different versions of a dll on your machine abd you want to see which version is registered?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Nov 6th, 2001, 02:03 PM
#6
Hyperactive Member
use ole view
If you've got visual studio or C++ you can use the OLE view application. It scans through your registry and type library information and presents you a GUI to browse all registered COM components.
-scott
he he he
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|