On 19/06/2012 5:35 AM, Ανδρέας Πορευόπουλος wrote:
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 happens here is the server is already running?

Apart from that, I'm afraid I have no other ideas other than to talk to the provider of the object (or their support forums etc)

Cheers,

Mark


What am I doing wrong?

Best regards,
Andreas




_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to