Accessing a COM object from Python

Martin von Loewis loewis at informatik.hu-berlin.de
Sun Oct 1 05:05:13 EDT 2000


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.

I'd suggest that you have Python print the parameters it passes to
CoCreateInstance, then write a small C program that does the exact
same thing - that would allow eliminate one error source.

Regards,
Martin



More information about the Python-list mailing list