swig and DWMAPI.dll

Jack jack.sankey at gmail.com
Sat Aug 9 17:20:38 EDT 2008


Hello,

When I try and compile a C++ project into a _mystuff.pyd file using
swig with wxDev-C++ it works. I can import, run and everything else in
python.

When I try to compile with g++ command line or code::blocks, compiles
just fine but when I try to import it I get this error:

File "<input>", line 1, in <module>
  File "D:\python\spinmobules\speedy.py", line 7, in <module>
    import _speedy
ImportError: DLL load failed: A dynamic link library (DLL)
initialization routine failed.

Running "dependency walker" tells me that DWMAPI.dll is missing. This
is a file that apparently is only on windows vista.

Has anyone run into this problem? Is there an easy solution?

Thanks,
Jack



More information about the Python-list mailing list