1. Open project properties

2. Locate the linker and select System.
3. Select “/ CONSOLE” in the SUBSYSTEM
4. Execute (Ctrl + F5) at this point and the window will not flash back. Note that if you are debugging (F5), it will still flash back.