Console application doesn't print "Press any key to continue . . ."
c++, console-application, visual-studio-2010
Solution
Change the subsystem to Console in the link settings
Problem
I have third-party SDK code samples written in C++ (Console applications). When I run any of them from Visual Studio 2010 (Start without Debugging), it doesn't print "Press any key to continue . . ." in the end, Console window is just closed. How did they manage to get such behavior? More important: how can I get standard "Press any key to continue . . ." in the end? Of course, without changing the program code...