Author Topic: GUI app with stdout an stderr  (Read 1989 times)

Offline Manolo

  • Multiple posting newcomer
  • *
  • Posts: 47
GUI app with stdout an stderr
« 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?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2286
Re: GUI app with stdout an stderr
« Reply #1 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
« Last Edit: May 20, 2008, 04:47:49 pm by Pecan »