Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 world of C++) thanks in advace

edit: if possible can you give me please two small programs to show an effect

like image 514
geek Avatar asked Sep 06 '11 07:09

geek


2 Answers

/SUBSYSTEM:CONSOLE) is for console based applications. You should define main function in code.

/SUBSYSTEM:WINDOWS) is for GUI applications. You should define WinMain function.

like image 53
ks1322 Avatar answered Sep 19 '22 17:09

ks1322


/SUBSYSTEM:CONSOLE results in a process with a console and /SUBSYSTEM:WINDOWS does not.

like image 20
David Heffernan Avatar answered Sep 17 '22 17:09

David Heffernan