Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: facat on February 10, 2010, 03:33:43 pm
-
i write a win32 GUI program in C::B, build and run it. However, a Dos window appears with my GUI window. when i close that Dos window, my GUI window also closes.
i complie my program in VC6 and i do not see a Dos window.
Could anybody tell me why?
-
Have you setup your C::B project as GUI (Project -> properties -> second tab)?
-
Could anybody tell me why?
Unless you setup the project type to "GUI" the console will be shown to allow you to see debug messages you UI app prints into the console. This is useful for debugging, but only for that. A "GUI" based application does not show the console (hence there might be messages piped into the "virtual" console but you won't see them).
-
Originally i set the project to console. now how could i change it to GUI?
-
Project -> properties -> second tab -> there you should see "Console", change it to GUI
-
Project -> properties -> second tab -> there you should see "Console", change it to GUI
i changed it to GUI, but the Dos windows still appears.
-
i changed it to GUI, but the Dos windows still appears.
in that case either really part of your code (which you might want to post for inspection) or you are not using the "play" symbol for running the project or run a a different (wrong) target or... hard to tell with such less information. It's best if you strip your project to a minimal example and post it here, including project file and code file(s).
-
ok. i solved the problem. i just changed it to GUI for both Debug and Release .