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
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...).
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: ...