win32com / Dispatch

Paul.Casteels at ua.ac.be Paul.Casteels at ua.ac.be
Wed Nov 6 02:29:48 EST 2002


Mark Hammond <mhammond at skippinet.com.au> wrote:
: Paul.Casteels at ua.ac.be wrote:
:>  When I use win32com.client.Dispatch I get a CDispatch object with an
:> oleobj inside and I have direct access to all methods/attributes.
:>  How can I obtain the same result when I get the IDispatch pointer from
:> an external application (as an argument from another COM method).
:>  The type of this pointer is PyIDispatch but I am unable to invoke any
:> methods on it.

: Simply pass the PyIDispatch object to win32com.client.Dispatch() - it 
: detects this case and creates a wrapper around it.

: Mark.

Thanks a lot, this works fine.

Paul Casteels



More information about the Python-list mailing list