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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rasjid Wilcox Sent: Friday, 11 July 2008 3:21 PM To: python-win32@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.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32