connecting to an exsisting COM server

J

jelle

Hi,

I'm using
win32com.client.GetObject(Class='Rhino3.Application')
to connect to an existing COM server. However when doing so:

Traceback (most recent call last):
File "<input>", line 1, in ?
File "C:\Python24\lib\site-packages\win32com\client\__init__.py",
line 80, in GetActiveObject
dispatch = pythoncom.GetActiveObject(resultCLSID)
com_error: (-2147221021, 'Operation unavailable', None, None)

A com_error is raised. This problem has come up a few times on this
list, however that didn't help me to find a way of connecting to it.
What else could I try?

Cheers,

Jelle
 
R

Roger Upole

Normally you get that if the application doesn't register itself
with the Running Object Table. Do you know if the COM
server in question registers itself ?

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,260
Messages
2,571,301
Members
47,944
Latest member
LillianPra

Latest Threads

Top