Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by barbie (Deacon)
on Mar 30, 2005 at 23:30 UTC ( #443641=note: print w/ replies, xml ) Need Help??


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

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/


Comment on Re^3: How to find GUID of Typelibrary for a given OLE Object?
Download Code
Replies are listed 'Best First'.
Re^4: How to find GUID of Typelibrary for a given OLE Object?
by Anonymous Monk on Mar 31, 2005 at 09:08 UTC
    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
Node Status?
node history
Node Type: note [id://443641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-08 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls