Tuesday, May 7, 2019

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

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.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...