954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

n00b needs help hiding the black box

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??

Thanks,

dj_saxy
Newbie Poster
6 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

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

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

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?

dj_saxy
Newbie Poster
6 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

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

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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

Thanks

dj_saxy
Newbie Poster
6 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You