in reply to How to find GUID of Typelibrary for a given OLE Object?

I don't have that version of Excel installed, so I looked up Outlook instead:

use Win32::TieRegistry; my $clsid = $Registry->{'HKEY_LOCAL_MACHINE\SOFTWARE\Classes'. '\Outlook.Application\CLSID\\'}->{'\\'}; print $Registry->{'HKEY_CLASSES_ROOT\CLSID\\'.$clsid}->{'\\'}; __END__ Microsoft Outlook 8.0 Object Library

I didn't find the GUID. I hope someone else can help with that...

hth

Replies are listed 'Best First'.
Re^2: How to find GUID of Typelibrary for a given OLE Object?
by gellyfish (Monsignor) on Mar 30, 2005 at 12:01 UTC

    You do have the "GUID" - that's what is in the $clsid there - or rather that is a GUID.

    /J\

Re^2: How to find GUID of Typelibrary for a given OLE Object?
by Anonymous Monk on Mar 30, 2005 at 14:16 UTC
    Thank you for your answer!

    But if I apply your solution to 'Excel.Application' it prints 'Microsoft Excel' (that is NOT a type library, since Win32::OLE::Const->EnumTypeLibs() call doesn't list it as type library). But for some reason your solution works the way I dreamed about for 'Outlook.Application' ( I would find out it too if I digged in registry using 'Outlook.Application' as a sample).

    Does anybody have any other ideas?