Evidence of pythoncom bug?
Mark Hammond
MarkH at ActiveState.com
Thu Sep 6 19:51:44 EDT 2001
Bill Bell wrote:
> Now when I attempt to do the same thing in PythonWin,
>
> ---- code starts ----
> MSHTMLInterface = CoCreateInstance ( '{25336920-03F9-11CF-
> 8FD0-00AA00686F13}', None, pythoncom .
> CLSCTX_INPROC_SERVER, '{332C4425-26CB-11D0-B483-
> 00C04FD90119}' )
> ---- code ends ----
>
> the result is,
>
> ---- output starts ----
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> TypeError: There is no interface object registered that supports this
> IID
> ---- output ends ----
>
> What do you think?
The IID translation is working fine. The problem is that you are asking
for an IID that PythonCOM does not support.
Try passing IDispatch - either the pythoncom.IID_IDispatch attribute, or
the string representation of that IID.
Mark.
More information about the Python-list
mailing list