[python-win32] Connecting to a running COM server
Ανδρέας Πορευόπουλος
sv1jsb at gmail.com
Mon Jun 18 21:35:32 CEST 2012
Hello,
I am new to windows programming and I am trying to connect to a local erp
application server which has a registered com interface and provides
methods for an external program to communicate with it.
With Delphi one can do following and have access to the erp:
...
user ComObj
...
FSoftOne := CreateOleObject('SoXplorer.SoConnection');
...
FSoftOne.Login('user',''pass');
etc...
I am trying to do the same with python but with no success.
s1 = win32com.client.GetObject(Class='SoXplorer.SoConnection')
I get:
pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None)
s1 = pythoncom.Connect('SoXplorer.SoConnection')
I get:
pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None)
When there is no server running I do:
s1 = win32com.client.Dispatch('SoXplorer.SoConnection')
this starts the server but this is not an option because the server will be
up all the time.
What am I doing wrong?
Best regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120618/89d6a78a/attachment.html>
More information about the python-win32
mailing list