Servicing events from a COM server

Mark Hammond mhammond at skippinet.com.au
Fri Feb 28 18:36:25 EST 2003


John Brydon wrote:
> I have a COM object implemented with C++ Builder as an out-of-process
> (*.exe) server. I am accessing properties and methods from a Python
> script with no problem but require the script to also service events
> generated asynchronously by the server. Can anyone point me towards a
> reference for implementing this ?

You probably need to the entry point for your COM object.  Check out 
win32com.server.localserver for the main loop an out-of-proc server 
runs.  You may need to provide your own.  Check out 
win32com.server.register for how you can provide you own.

Mark.





More information about the Python-list mailing list