943,994 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 2669
  • C++ RSS
Jan 16th, 2005
0

n00b needs help hiding the black box

Expand Post »
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,
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dj_saxy is offline Offline
6 posts
since Nov 2004
Jan 16th, 2005
0

Re: n00b needs help hiding the black box

Are you sure you are running this project as a Windows Application?
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Jan 16th, 2005
0

Re: n00b needs help hiding the black box

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dj_saxy is offline Offline
6 posts
since Nov 2004
Jan 16th, 2005
0

Re: n00b needs help hiding the black box

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jan 16th, 2005
0

Re: n00b needs help hiding the black box

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

Thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dj_saxy is offline Offline
6 posts
since Nov 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: creating a class and declaring objects
Next Thread in C++ Forum Timeline: inport outport functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC