output to cmd

hi
Im making a windows program and it would be great to have simple output (with iostream) so i was wondering if there is a way to have a ms window and send output to command prompt?
Ive tryed to launch the program with cmd but it didnt help.
By default Windows (GUI) programs don't have standard I/O streams.
There are several ways to fix this. Here is one:
http://www.halcyon.com/~ast/dload/guicon.htm

There two functions of major interest are AllocConsole() and _open_osfhandle().

Hope this helps.
You can redirect the standard output to a file :) That's probably the simplest way. Then when finished, remove the redirection and the cout commands will do nothing :)
Topic archived. No new replies allowed.