[python-win32] How to implement a COM interface (that is notpart
Mark Hammond
mhammond at skippinet.com.au
Sat Sep 23 02:30:59 CEST 2006
> Is the custom of passing an object that implements an interface as an
> argument to a COM function an unusual one?
Yes - but you must be careful of threading rules - ie, you can *not* simply
pass the pointer to a different thread that make the actual callback.
> I've searched for other
> COM functions that do this, and have yet to find any. The most common
> way of registering an event sink for most COM applications seems to be
> overriding the callback functions on a COM object directly.
Yeah, COM events generally use 'connection points' - but even then, the
thread-rules must be followed.
Mark
More information about the Python-win32
mailing list