Python COM Object
Simon Withers
simon at klickit.com
Fri Apr 18 14:10:22 EDT 2003
I am experimenting with the python com server found in programming
python second edition (comserver.py) - it looks to be essentially the
same as all the other python com server examples that I have seen.
When I use the com server from within a python script ie:
from win32com.client import Dispatch
server = Dispatch('PythonServers.MyServer')
it works fine, however when I use the com server from somewhere else
say within jscript ie:
var server = new ActiveXObject('PythonServers.MyServer');
I get an 'Automation server can't create object' error.
I have registered the server using:
from win32com.server.register import UseCommandLine
UseCommandLine(pyclass)
and a search of my registry finds what look to be appropriate values.
I am at a loss as to why I cannot use the python com server in
non-python contexts.
Simon
More information about the Python-list
mailing list