difference between Console (/SUBSYSTEM:CONSOLE) and Windows (/SUBSYSTEM:WINDOWS)

前端 未结 4 1448
栀梦
栀梦 2020-12-06 03:04

can somebody please explain difference between those two declarations in the properties of the linker in visual studio 2008( please as simple as possible, I\'m new in the w

4条回答
  •  遥遥无期
    2020-12-06 03:37

    See here. VS2008 automates some things for you which has lead to the confusion.

    CONSOLE Win32 character-mode application. The operating system provides a console for console applications. If main or wmain is defined for native code, int main(array ^) is defined for managed code, or you build the application completely by using /clr:safe, CONSOLE is the default.

    WINDOWS Application does not require a console, probably because it creates its own windows for interaction with the user. If WinMain or wWinMain is defined for native code, or WinMain(HISTANCE *, HINSTANCE *, char *, int) or wWinMain(HINSTANCE *, HINSTANCE *, wchar_t *, int) is defined for managed code, WINDOWS is the default.

提交回复
热议问题