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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clsid/guid from .dll or .ocx not registered

Status
Not open for further replies.

gonzoaz

Programmer
Jul 19, 2002
3
0
0
US
I am looking for some code that will get the clsid from a .dll or .ocx. I know I can register it and get it from the registry but I want to get the clsid from the file not the registry. This is so I can check and see if the file is then registered.
 
Hi gonzoaz,

this is easy!

Make a reference to "TypeLib Information" (tlbinf32.dll).

Dim tlb As TLI.TypeLibInfo

Set tlb = TLI.TypeLibInfoFromFile("MSVBVM60.DLL")
Msgbox tlb.Guid ' GUID as string

That's all

bye
LauDse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top