Is there a #define associated with the SubSystem

前端 未结 3 787
情书的邮戳
情书的邮戳 2021-01-08 00:42

I\'m creating main with a macro and need to be able to check the selected SubSystem at compile time, /SUBSYSTEM:WINDOWS or /SUBSYSTEM:CONSOLE, in order to generate the appro

3条回答
  •  耶瑟儿~
    2021-01-08 01:28

    _CONSOLE should do the trick for you.
    Also you can select the subsystem using #pragma comment( linker, "/subsystem:windows" ) or #pragma comment( linker, "/subsystem:console" ) if you really want to go this route.

提交回复
热议问题