Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Manolo on May 20, 2008, 10:47:07 am

Title: GUI app with stdout an stderr
Post by: Manolo on May 20, 2008, 10:47:07 am
Hello

I develop on WinXP using Mingw

I want to run and debug a GUI app inside C::B
I want to see all three GUI, stdout and stderr outputs.

I can do it _outside_ of C::B using, i.e.:
D:\progs\myprog\bin\debug\myprog >res.txt 2>&1
so, stdout and stderr outputs go to res.txt. But if I want to debug
simultaneously I must use also gdb from a cmd.

How can I achieve this without using a command line, but inside C::B?
Title: Re: GUI app with stdout an stderr
Post by: Pecan on May 20, 2008, 04:23:18 pm
Search for AllocConsole() in MSDN. They also have an example.

http://forums.codeblocks.org/index.php/topic,2369.msg18720.html#msg18720