console in win32

closed account (28poGNh0)
Hiiiiii everyone

I programed a simple win32 app but when I get the app.exe every time I open it there is the black console with it so
1 : why the console Accompan the win32 app
2 : How can I get rid of it

thanks
Depends on your compiler.

For GCC, add the -mwindows option to get rid of the console.

For MSVC++, you probably just have to make sure you create the right kind of project (or dig around the project options; there's gotta be something in there...).
closed account (28poGNh0)
Thanks for the reply

I use code blocks ,is that gcc?
Code::Blocks comes with GCC by default, I believe, but you can check what compiler you are using under Project -> Build Options... and checking the top where it says Selected compiler: ...
The console comes from Code::blocks itself (cb_console_runner.exe), not from your application.
Run it from windows explorer to make sure.
Topic archived. No new replies allowed.