Python and DDE

eryksun () eryksun at gmail.com
Thu Apr 7 19:01:41 CEST 2011


On Wednesday, April 6, 2011 3:37:34 PM UTC-4, Robert Upton wrote:
> Dear Pythoners,
> 
> I am attempting to get the DDE module to import into Python and am
> having some trouble.  I have downloaded and installed the pywin32
> extensions for Python 2.6, which is the version of python I am running
> on Windows.  When I attempt to import the DDE module, as follows,
> 
> import win32ui
> import dde
> 
> I get:
> 
> " Traceback (most recent call last):
>  File "<string>", in line 1, in <fragment>
> ImportError: This must be an MFC application - try loading with
> win32ui first"

For what it's worth, importing dde works from within the MFC demo application Pythonwin.exe, located in site-packages\pythonwin, which is where you'll also find the MFC DLLs and manifest, along with win32ui.pyd and dde.pyd.

You'll probably find more help on the python-win32 mailing list:

http://mail.python.org/mailman/listinfo/python-win32

Or file a bug report on the SourceForge bug tracker for pywin32:

http://sourceforge.net/tracker/?group_id=78018&atid=551954



More information about the Python-list mailing list