[python-win32] ActiveX dll error - Non-modal forms cannot be displayed in this host application
Mark Hammond
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)
Cheers,
Mark
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
Hi,
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??
Cheers,
Rasjid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080711/6263c709/attachment.htm>
More information about the python-win32
mailing list