[python-win32] Dispatches With Events on COM Object
Mark Hammond
mhammond at skippinet.com.au
Wed Aug 9 15:12:56 CEST 2006
> * The call to Dispatch happens
> * The __wrapDispatch is called with an object for dispatch but the
> username is None
> * The getTypeInfo method throws an pywintypes.com_error which has
> the message of (-2147467263, 'Not implemented', None, None)
It is that last step where things go wrong it seems. If the object is
already a makepy wrapped object, we shouldn't call GetTypeInfo - the object
should just be used as-is. We might need a similar check for a CLSID
attribute there (or better, a function eg, gencache.IsGeneratedObject() that
abstracts that implementation detail). I'm afraid I'm out of time for today
though...
Cheers,
Mark
More information about the Python-win32
mailing list