win32com / Dispatch
Mark Hammond
mhammond at skippinet.com.au
Tue Nov 5 17:01:38 EST 2002
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.
More information about the Python-list
mailing list