On 8/22/12 4:13 PM, Jan Dubois wrote:
>
> An alternative is to crawl the registry for all registered type libraries.
> That at least gives you all the methods and properties, but I don't think
> you can get the ProgID that way.  There is a sample script that does this
> though:
>
> http://cpansearch.perl.org/src/JDB/Win32-OLE-0.1709/eg/typelibs.pl
>
> In the end you should just consult the documentation for the object model
> of the application you want to automate.  Then just instantiate an application
> level object for it, and if that fails, you can assume that the app isn't
> (correctly?) installed. :)
>
> Cheers,
> -Jan
>
>

Tried it, but the call line (15):

$hTypelib->Create($clsid, $hClsid);

leaves $hClsid unset, which then causes GetKeys() to fail 2 lines later:

$hClsid->GetKeys($Versions);



_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to