win32com - .ocx won't Dispatch...
Mark Hammond
mhammond at skippinet.com.au
Fri Jan 30 18:40:33 EST 2004
Ray Schumacher wrote:
> So, the util class Dispatches, but all calls (properties and functions) give 'Catastrophic failure'
> Is this really some sort of types problem with this OCX?
> "pywintypes.com_error: (-2147418113, 'Catastrophic failure', None, None)"
My guess is that your OCX is a true OCX, and therefore needs a full GUI
environment. Pythonwin can host these - see the
pythonwin\pywin\demos\ocx directory, and modify one of these to suit.
wxPython can also apparently host OCX controls in a similar way, but I
have no details.
Mark.
More information about the Python-list
mailing list