Re: [python-win32] How to implement a COM interface (that is notpart

2006-09-22 Thread Mark Hammond
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

Re: [python-win32] How to implement a COM interface (that is notpart

2006-09-21 Thread Mark Hammond
Thanks for your help -- I searched around some more and I think I have the basic idea down -- if you want to implement a COM interface, it should look something like this: That all looks correct! import win32com.server.util qnotify = win32com.server.util.wrap(Q()) Try adding