running a COM server in Python

Manoj Plakal terabaap at yumpee.org
Tue Feb 26 03:26:29 EST 2002


Mark Hammond wrote:
> Mark Barclay wrote:
>> Is there a way of coding a COM server that can be running before it is 
>> accessed
>> by a COM client? I'm not sure if this makes sense, but I'd like to 
>> have a program
>> running, that can be connected to, perhaps multiple times, without it 
>> having to
>> create multiple instances of teh server, just have multiple clients 
>> using it.
> 
> 
> IIRC, it gets a little messy - you need to implement a LocalServer 
> object, and add it to the running object table (ROT).  Searching old 
> posts at groups.google.com is probably your best bet.


          Take a look at the CVS tree of qasid.sourceforge.net.
          There's a small example of a wxPython GUI app that acts
          as a COM server. The COMHostServer function in qasidserver.py
          does the job of creating an instance of the server and
          registering it in the ROT.

          Manoj





More information about the Python-list mailing list