Embedding Python, works in main() but not in WinMain()

偶尔善良 提交于 2019-12-06 10:59:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!