Difference between Windows and Console application

后端 未结 7 1800
别跟我提以往
别跟我提以往 2020-11-27 04:10

What differences are there between Windows and Console applications ?

When creating a new project in Visual C++ , it asks to choose either of the above .

7条回答
  •  情深已故
    2020-11-27 04:29

    The entry point of console applications is wmain (since Visual studio 2008 IIRC), main if you opt out of Unicode-by-default. For desktop ones, it's wWinMain/WinMain.

    That is not to say that the techniques are otherwise mutually exclusive. Console applications can still use the whole gamut of Win32 API, and desktop ones can use console I/O (but they have to explicitly create a console window first).

提交回复
热议问题