[python-win32] ActiveX dll error - Non-modal forms cannot be displayed in this host application
mhammond at skippinet.com.au
Fri Jul 11 15:22:01 CEST 2008
ActiveX DLLs in a raw python.exe program are tricky. I'm guessing you need
to use the DLL in a true ActiveX host app - pythonwin is one (see the
pywin\demos\ocx directory) and wxPython can also do it (but I'm not sure
about how it is done there)
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Rasjid Wilcox
Sent: Friday, 11 July 2008 3:21 PM
To: python-win32 at python.org
Subject: [python-win32] ActiveX dll error - Non-modal forms cannot be
displayed in this host application
I have an ActiveX dll that I am trying to use in a Python script.
I can dispatch the control, but when I try to runs its 'open' command, I get
the following error:
"Non-modal forms cannot be displayed in this host application from an
ActiveX DLL, ActiveX Control, or Property Page."
My googling seems to indicate that it is either something to do with
threading model differences, or something to do with MsoStdCompMgr.
Does anyone have any suggestions on how to get around this problem??
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-win32