问题
I am embedding Python 3.4 into my application written in C++. When I enter the program with main() all works great, but when I use WinMain() it crashes. When Py_Initialize is called in main() everything works but in WinMain it fails. I am guessing it has something to do with the console not being there as WinMain() does not create a console.
Thanks!
来源:https://stackoverflow.com/questions/22866596/embedding-python-works-in-main-but-not-in-winmain