Open Console in win32 API program?

is it possible?

let's say I have simple dialog, and if I click on one button it will open windows console, like when u are creating console program...
Google is your best friend. :)

http://www.halcyon.com/~ast/dload/guicon.htm

This even has C++ source code.
I was searching on google, I found this article but I didn't opened it cuz I thought they mean fstream :P my bad, thanks
Hey no problem. Good luck to you.
I use that "gui console" code a lot for debugging. But I have found that clicking on the console's [x] button, to close it, can sometimes take out the app. So if you need the console for more than just debugging, you might want to look into disabling the close button. This involves calls to GetConsoleWindow(), GetSystemMenu(), and DeleteMenu().
Topic archived. No new replies allowed.