Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualLennyLen

Posted 23 November 2012 - 06:38 AM

Use CTRL-F5 to start the application inside VS, and the console should remain open.

edit: You also need to do the following steps (copied from a Stack Overflow answer):


Note that this requires the Console (/SUBSYSTEM:CONSOLE) linker option, which you can enable as follows:
1 Open up your project, and go to the Solution Explorer. If you're following along with me in K&R, your "Solution" will be 'hello' with 1 project under it, also 'hello' in bold.
2 Right click on the 'hello" (or whatever your project name is.)
3 Choose "Properties" from the context menu.
4 Choose Configuration Properties>Linker>System.
5 For the "Subsystem" property in the right-hand pane, click the drop-down box in the right hand column.
6 Choose "Console (/SUBSYSTEM:CONSOLE)"
7 Click Apply, wait for it to finish doing whatever it does, then click OK. (If "Apply" is grayed out, choose some other subsystem option, click Apply, then go back and apply the console option. My experience is that OK by itself won't work.)

#1LennyLen

Posted 23 November 2012 - 06:36 AM

Use CTRL-F5 to start the application inside VS, and the console should remain open.

PARTNERS