Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Win32::OLE Type Library Browser

by dws (Chancellor)
on Aug 25, 2001 at 05:27 UTC ( #107771=perlmeditation: print w/ replies, xml ) Need Help??

Last night I set about writing a Perl script that would read a Microsoft Project plan and emit an HTML summary of some key info (e.g., who's doing what right now, and which tasks are late1). Later that night, after beating my head against what little MS Project object model documentation I could lay my hands on, I chanced to stumble across something really neat.

In the ActiveState HTML-based on-line documentation, there's a link for Win32::OLE::Browser. I'd never had any reason to try it before, and hadn't noticed anyone else mention that it was interesting. On a desparate whim, I tried it.

Wow.

The Win32::OLE::Browser page is an OLE Type Library browser. Using PerlScript, that page provides a view of all of the OLE type libraries on a machine, and lets you poke around to see what COM objects they define, and what their public interfaces are. And, if you have the help files for the type libraries installed (e.g., from some SDK), the page also provides an icon that'll launch Microsoft's help viewer and take you right to the section that describes the selected Object, method, or property.

I was in heaven (aside from being in MS hell). In an hour, the problem was all sorted out, saving untold head-banged. Thank you, ActiveState.

The meditation here, such as it is, is that in the Perl world there are some amazing gems that are sometimes lurking right under our noses. Taking the time to stop and look around, be that examining all of the packages in the standard distribution, or looking at the extras that ActiveState ships, can pay huge dividends.

---
1 I'm a pointy-haired manager now, and need to know these things for accurate minion whipping.

Comment on Win32::OLE Type Library Browser
Re: Win32::OLE Type Library Browser
by joefission (Monk) on Aug 25, 2001 at 10:00 UTC
    dws++ Always nice to read a write-up that articulates my thoughts better than myself :-) All I could manage was "it's cool".

    (I'm curious...anyone know if you can see AOL objects?)

Re: Win32::OLE Type Library Browser
by perldoc (Scribe) on Aug 26, 2001 at 03:11 UTC
      So how does the Perl viewer compare with the OLE viewer from the SDK?
        The MS COM/OLE viewer isn't all that great. It's not really a "Class Browser", rather it lets you see the COM and OLE objects. It's nice for knowing what's there, but not for finding methods and properties.

        The downfall with the AS browser is that it's web based and a little slow. There's another class browser with VB and a good one with sharpdevelop. Unfortunately those two can only be run from inside the apps.

        Rich

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://107771]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-08-31 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls