[python-win32] Calling (D)COM Server from another PC

Gfeller Martin Martin.Gfeller at comit.ch
Sun Jun 20 08:02:41 EDT 2004


Christian,

I sucessfully used the Windows 2000 utility dcomcnfg.exe to
transparently map COM calls to another machine. There was no need to
modify any Python code - just use DCOMCNFG declare that the called COM
object is actually on the other machine. On the target machine, DCOMCNFG
can be used to allow the originating machine/user to invoke the object.

Best regards,
Martin

-----Original Message-----
From: Christian Junker [mailto:christian at treesforlife.org] 
Sent: Friday, June 18, 2004 3:41 AM
To: python-win32 at python.org
Subject: [python-win32] Calling (D)COM Server from another PC


Hello together,
this question might be foolish, but after quite some search I could not
find how to make use of DCOM with the current win32com package. I tested
out the DispatchEx which takes as its second parameter a 'machine',
probably either the hostname or the IP. I tried to invoke methods of the
Internet Explorer on other PCs in the network, and actually it worked
(no exception thrown), but on the target machine no changes could be
seen (IE.Visible=1 would make a IE Window visible but it didn't do
anything on the other pc). So does someone of you know how to make use
of DCOM, ie calling COM or OLE objects on other PCs.

Thanks in advance.

Best regards
Christian








More information about the Python-win32 mailing list