Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: How to find GUID of Typelibrary for a given OLE Object?

by Anonymous Monk
on Mar 30, 2005 at 14:54 UTC ( [id://443483]=note: print w/replies, xml ) Need Help??


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

Thank you for your sample, but your code won't return anything for 'Excel.Application' (since the type library in question is named 'Microsoft Excel 9.0 Object Library'.. Do you have any other ideas?
  • Comment on Re^2: How to find GUID of Typelibrary for a given OLE Object?

Replies are listed 'Best First'.
Re^3: How to find GUID of Typelibrary for a given OLE Object?
by barbie (Deacon) on Mar 30, 2005 at 23:30 UTC
    This is the PROGID, which doesn't appear to be returned by Win32::OLE. However you could cheat and add the following to the previous code:
    sub ApplicationTypeLib { my $typelib = shift; $typelib =~ s/\.Application//; for my $lib (@Library) { return @$lib if($lib->[1] =~ /$typelib/); } return (); }

    --
    Barbie | Birmingham Perl Mongers user group | http://birmingham.pm.org/

      Thanks for your answer! Is this hack GUARANTEED to work for any ActiveX object name (i.e. is this naming scheme a some form of a standard)? (I mean is there anything regarding this in OLE specs)? Can I rely on this hack in my code?
        Using Perl with OLE. There are various tools available in the market to get the GUID's. The one that comes with Active Perl k/a browser works well. And then there are ways to track it via registry and Microsoft OLE viewer also.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443483]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found