Share via


Why does output window dissappears in Visual Studio 2017?

Question

Thursday, November 30, 2017 6:12 AM

I downloaded Visual Studio Professionals and install it correctly using the installer. When I write a simple Hello, World C Program the output window disappears as well as when I do it in C++. I thought I have not installed it correctly so I uninstalled it and downloaded it again and installed it from scratch but then again that stuff happened. So I uninstalled it again and this time I downloaded the community edition and now I'm facing the same problem. I searched it on the web and found a solution to go to linker option in the source file properties window but there is no linker option under the configuration property. Please somebody help me.

All replies (4)

Thursday, November 30, 2017 7:52 AM | 1 vote

Do you mean the Output panel of Visual Studio, or the window of your console application when it is started?

To keep the console window open, try starting with <Ctrl+F5> or use a debugger’s breakpoint.

If the console window is not even displayed, then create a new project of “Windows Console Application” type. What kind of application do you currently have?


Thursday, November 30, 2017 8:35 AM

Console! 
When I create a console application for c++. I get an output console. But when I create an empty project it doesn't, for c and c++ both. I tried ctrl + f5 as well as f5 also the linker option is not available in the configuration properties. I'm using VS 2017 and I want to program with C.


Thursday, November 30, 2017 11:46 PM

An empty project has nothing to execute.

Try Getting Started with C++ in Visual Studio.

Sam Hobbs
SimpleSamples.Info


Friday, December 1, 2017 2:34 AM

Hi,

Welcome to MSDN forum.

Right click on your project-> Properties->Configuration Properties-> Linker-> System, select Console (/SUBSYSTEM:CONSOLE) in SubSystem option. After this, press Ctrl+F5 then by default it prompts your to press return to close the window. If you want to use the debugger, you should put a breakpoint on the last line.

refer: https://stackoverflow.com/questions/1775865/preventing-console-window-from-closing-on-visual-studio-c-c-console-applicatio/1775870

Best regards,

Joyce

Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].