Hi i'm new to c++. I can sort of make simple programs, but everytime i try to making a program with a GUI the black windows box keeps coming up and sitting in the background.

Does anyone know how to get rid of it?

I've found some snippets on other websites, but they don't seem to work. I'm using DEV C++, is it something to do with how i'm compiling it??


Are you sure you are running this project as a Windows Application?

Yes i'm compiling it as an .exe and it it runs fine. It just has a cmd-style window in the background. Do you know how i can get rid of it?

>Yes i'm compiling it as an .exe and it it runs fine.
That doesn't answer the question. When you create a project in Dev-C++ you can choose a Win32 application or a Console application. You chose a console application, which automatically spawns a command prompt window for running the program. A Win32 application does not.

Ah ha that would be where my problem is then!! Sorry, just a n00b being retarded!!