embedding wxPython in VisualStudio 2012 C/C++ fails

Hi,

When I try to embed wxpython in C++ code I get the following error when wx module is imported:

import core

ImportError: DLL load failed: The specified module could not be found.

Everything goes fine when importing the wx module from the standard IDLE and the same code runs ok.

I am using Python 2.7 with wxPython-2.8.12.1 unicode and VS2012 for compiling the C++ application.

Would be grateful if someone had a solution.

Isak

The default python 2.7 build was built with Visual Studio 2008 so I
suspect that you will need to build python and wxPython
from VS2012. Some information on the process can be found .
Hope that helps.
Gadget/Steve

···

On 19/02/14 18:55, Isak wrote:

Hi,

      When I try to embed wxpython in C++ code I get the

following error when wx module is imported:

import core

      ImportError: DLL load failed: The specified module could

not be found.

      Everything goes fine when importing the wx module from the

standard IDLE and the same code runs ok.

      I am using Python 2.7 with wxPython-2.8.12.1 unicode and

VS2012 for compiling the C++ application.

Would be grateful if someone had a solution.

Isak

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to .
For more options, visit .
bothhere

wxpython-users+unsubscribe@googlegroups.com
https://groups.google.com/groups/opt_out