Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Win32::OLE Type Library Browser

by dws (Chancellor)
on Aug 25, 2001 at 05:27 UTC ( [id://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.


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.

Replies are listed 'Best First'.
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.


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?)