in reply to How to automate COM objects (Win32)

From the docs of ActiveState Perl v631 Win32::OLE module.

This module provides an interface to OLE Automation from Perl. OLE Automation brings VisualBasic like scripting capabilities and offers powerful extensibility and the ability to control many Win32 applications from Perl scripts.

The Win32::OLE module uses the IDispatch interface exclusively. It is not possible to access a custom OLE interface. OLE events and OCX's are currently not supported.

Actually, that's no longer strictly true. This module now contains ALPHA level support for OLE events. This is largely untested and the specific interface might still change in the future.

HTH

  • Comment on Re: How to automate COM objects (Win32)

Replies are listed 'Best First'.
Re: Re: How to automate COM objects (Win32)
by svad (Pilgrim) on Apr 25, 2002 at 05:40 UTC
    Thank you, this really helps me.
    for some strange reason I missed IDispatch word at the very beginning of documentation...

    OTOH I think "It is not possible to access a custom OLE interface" means that not possible with Win32::OLE, but may be, in any particular case, it is still possible via lower level API and Win32::API module?

    Warmest wishes,
    Vadim