convert a console app to a windows app

后端 未结 2 2023
醉酒成梦
醉酒成梦 2020-12-11 00:37

(its a long story) but I have a large complex project file containing a windows program. Unfortunately the project was originally built as a console app. The program compile

相关标签:
2条回答
  • 2020-12-11 01:03

    Right-click the project icon in the Solution Explorer, then Properties > Linker > System > SubSystem, and set that to Windows. You'll also have to change your main() method to WinMain(). And you'd better create some windows or there won't be much to look at.

    0 讨论(0)
  • 2020-12-11 01:15

    Complementing Hans' answer: While under Properties, also remember to expand the C/C++ node and select Preprocessor. Then edit the Preprocessor Definitions - replace _CONSOLE with _WINDOWS.

    0 讨论(0)
提交回复
热议问题