[C++-sig] Failed to import pyd File When python embed into C++

2013-01-22 Thread salinea
I create a pyd File named "testPyd" with boostPython,and then I import the testPyd module into "test.py", it works perfect! But when I embeded the python interpreter into my C++ project and run the "test.py", it comes out a "ImportErr: no module named testPyd". It has confused me for two days and

[C++-sig] How to debug pyd File in Visual Studio???

2013-01-25 Thread salinea
Recently, I build a hybrid system with C++ and python. First,I encapsulate a class(I can't guarantee the robustness of this class ) with boost.python which can implement some functions that can not be implemented by C++, I get a .pyd File in result. Second,I embed a python interpreter in c