Results 1 to 6 of 6

Thread: ActiveX DLL - GUID

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile 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.

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Posts
    106
    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

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Thumbs up 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.

  4. #4
    jim mcnamara
    Guest
    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

  5. #5

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile 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.

  6. #6
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327

    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
  •  



Click Here to Expand Forum to Full Width