[python-win32] how to create a valid Sink

Mark Hammond mhammond at skippinet.com.au
Thu May 10 01:14:35 CEST 2007


> I'd like to ask for help on how to create a valid event Sink
> which I can
> pass to the Advise() method of a message stores table.

This might be tricky unless pywin32 already has support for the specific
interface you need.

> Any class I made up so far gives the same error:
>
> File "<stdin>", line 333, in notify
> TypeError: The Python instance can not be converted to a COM object
>
> So what attributes does an object need to be convertable to a
> COM object?

It would need to be like any other pywin32 COM object; you should be able to
find info about that on the web.

Cheers,

Mark



More information about the Python-win32 mailing list