Passing COM IDispatch from C to PythonCOM

Jon Redgrave jredgrave at capisco.com
Wed Nov 27 14:55:19 EST 2002


I have a C program that has an IDispatch pointer to a COM object.
I want to run an embedded python script that uses this IDispatch pointer
(using Mark Hammond's excellent win32all), but do not know how to pass it to
the script.

PythonCOM appears to wrap IDispatch's in PyIDispatch object, How do I wrap
it, or can I somehow pass it another way (as an int??) and wrap it in
Python?

Many thanks for your help

[email address contains bogus underscore]





More information about the Python-list mailing list