Embedding a console window within a GUI app

Feb 29, 2012 at 7:02am
Hey Guys,

So basically I want to have a console within a GUI app, so it should have like menus and buttons in the left column of the GUI app for instance and when you press the "run" button for instance it should do something in the console column to the right.

What would be the best way to achieve this? Thanks to anyone who can help

P.S I'm on windows 7 & I'm experienced in writing console apps, but quite clueless with GUI's
Feb 29, 2012 at 7:35am
Use AllocConsole to display the console, then use WriteConsole to write to it (or see console functions in MSDN for a complete list)
Feb 29, 2012 at 12:09pm
Yes but you see the console wouldn't be painted within the GUI app that way, it would simply be hanging around. So do you know how I could achieve this?
Feb 29, 2012 at 8:18pm
There are a few tricks like get a handle to that console window and move it "inside" your window, but my advice is to use a multiline edit control instead and not bother with console anymore.
Topic archived. No new replies allowed.