Accessing a COM object from Python
Hans Kristian Ruud
hans.kristian.ruud at inenco.no
Mon Oct 2 07:15:33 EDT 2000
Martin von Loewis wrote:
> Hans Kristian Ruud <hans.kristian.ruud at inenco.no> writes:
>
> > IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
> > pythoncom.IID_IDispatch)
> [...]
> > Any ideas???
>
> It appears that CoCreateInstance failed. That, in turn, would indicate
> that either your server is not properly registered, or does not
> provide an IDispatch interface.
>
It turned out that I had the Distributed COM Server incorrectly
configured, so that
pythoncom tried to execute the application in question on my own PC,
instead of the correct remote computer.
>
> Regards,
> Martin
Thanks for your advice,
--
Hans Kristian
More information about the Python-list
mailing list