annoying cmd when running win32 application

When compile a win32 application and open the program a command prompt pops up

is there any way to get rid of this?

I am not using an IDE

I am simply editing it in notepad++

and compiling it through the command prompt with the mingw compiler
I am using the g++ function to compile


thanks
-
luckyl
Last edited on
You havn't provided enough info such as what compiler/development environment you are using; how you set up the project, etc. All these things matter. With most development system one must make an initial choice when setting up a project as to whether a console or GUI program is to be produced. There is no problem using one type and generating the other type in code, and vice versa. My guess is you've set up your project as a console project (hence the console window), then wrote (or copied) code to create a GUI window. So the solution to your problem isn't to get rid of the console window but to set up your project correctly so as not to produce it in the first place (assuming you don't want it, which you apparently don't).
Last edited on
Topic archived. No new replies allowed.