Hey all,
I have a nice gui visual studio app, and I've been using console::writeline to view output throughout my program. To be able to view this output, I open a DOS window and pipe my executable file to 'MORE'. Like this:
# prog.exe | more
This works ok, but 'more' only does a page at a time, so I have to keep hitting --Any Key to Continue---
Is there any other way to view console ouput (without running debug)

Console::WriteLine's in a GUI
Steve4527
When the program exits main, the console is automatically closed.
Wilson Chew
One alternate method is to change your project settings so that your app uses the console subsystem. That way, when you run your app, a console will pop up, and the main Windows Forms form will show up as well. All your Console::WriteLine calls will now go to this console.
WinFormer
KnownIssueJosh
Project Properties
-- Linker
---- System
------ SubSystem
rastsan_caj
error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
So, I added this to the Command Line options:
/LTCG
and I get :
error LNK2001: unresolved external symbol _main
any more tags i should throw in
BluestOval
I'm using Visual C++ .NET 2003.
Can you tell me where this setting is in the menus...can't find it.
Thanks
Ferry Mulyono
I presume you have a WinMain If so, change that to main.
Roni Tovi
That worked!!!