User forums > Using Code::Blocks
Why a Dos window appeares when i run my win32 Gui program?
facat:
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?
oBFusCATed:
Have you setup your C::B project as GUI (Project -> properties -> second tab)?
MortenMacFly:
--- Quote from: facat on February 10, 2010, 03:33:43 pm ---Could anybody tell me why?
--- End quote ---
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).
facat:
Originally i set the project to console. now how could i change it to GUI?
oBFusCATed:
Project -> properties -> second tab -> there you should see "Console", change it to GUI
Navigation
[0] Message Index
[#] Next page
Go to full version