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

前端 未结 4 1453
栀梦
栀梦 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:46

    CONSOLE: Console window is shown. WINDOWS - program starts without Console window.

    Edited, looking at another answers. Notice that /SUBSYSTEM flag doesn't affect the program entry point. Program entry point is defined by /ENTRY linker option. Usually /SUBSYSTEM:CONSOLE has "main" entry point, and /SUBSYSTEM:WINDOWS has "WinMain" entry point. But it is possible, for example, to create GUI application with WinMain entry point and Console window.

提交回复
热议问题