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
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to