how to serialize a COM object ?

Diez B. Roggisch deets at nospam.web.de
Tue Apr 24 16:19:53 EDT 2007


vml schrieb:
> I have a problem :
> 
> I have a COM object.
> 
> I would like to pass this com object from a server to a client through
> a socket.
> 
> I tried to put the com object into a stringIO with the pickle module
> but :
> 
> "can't pickle PyIDispatch objects"
> 
> 
> Is there other possibilities to pass a COM object through a network ?
> (pyro)

This isn't possible. There is a special kind of COM, called DCOM.
I'm a bit rusty on that, but you should try and use that.

Alternatively, you could of course create a pyro-backed proxy, that will 
delegate all calls to itself to the COM-object.

Diez



More information about the Python-list mailing list