pythoncom.connect()

John J. Lee jjl at pobox.com
Sat Nov 22 19:10:36 EST 2003


"John J. Lee" <jjlee at lbl.gov> writes:

Not another one!  And there was I thinking my "J." made me safe from
namespace clashes... :-(


> I have problems when I get the IDispatch with pythoncom.connect().
> When I called the 'Excel.Application' with it, it worked. (At least I can
> see the pythoncom.connect() is working for the well-designed COM like
> Excel.)
> When I called my COM module which was derived from IDispatch interface,
> the pythoncom.connect() issued error like
>     com_error: (-2147221021, 'Operation unavailable', None, None).
[...]

Do you know about win32com.client.Dispatch and friends?  Why are you
calling pythoncom.connect()?


John




More information about the Python-list mailing list