win32com - .ocx won't Dispatch...

Mark Hammond mhammond at
Sat Jan 31 00:40:33 CET 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.


More information about the Python-list mailing list