PDA

View Full Version : prompt showing on standalone c++ executable


CowboyInMe
03-02-2005, 02:30 AM
I can make standalone executables in c++ with windows fine, but the command prompt still pops up. Does it have a quiet mode where it remains hidden?

aman
03-02-2005, 03:02 AM
http://www.google.com/search?hl=en&lr=&q=windows+hidden+console&btnG=Search

CowboyInMe
03-02-2005, 03:35 AM
Thanks, thats a little offending but i'm not sure if you were trying to.

I have searched it, the best help i found was the fourth non indented link on that google search you posted. But that seems like a cheap ineffiecient and/or dangerous way of doing it. Is their a reliable source anyone knows of explaining how to do this?

cfc
03-02-2005, 04:28 AM
Are you compiling it as a windows application and jumping through any other necessary hoops to use the win32 api with your compiler? In about 20 minutes I managed to find, download, and configure the Borland C++ compiler and compile and run a win32 API "Hello World" program that doesn't display the console, and I haven't used C++ in years. :confused: I used the "Hello, World"-ish program from theForger's Win32 API Tutorial (link (http://www.winprog.org/tutorial/)) which actually uses a dialog box rather than an "empty" window, but there's no reason a window should bring up the console where a dialog box doesn't.

Which compiler are you using? If you're more specific in your searching, you should be able to find compiler documentation or a solution to your problem previously posted elsewhere. If not, someone here should be able to figure it out. :)

CowboyInMe
03-02-2005, 05:09 AM
It was an ID10T error. i opened the wrong project with the same source as a console application, hence the console.

Its takin care of now :)
Thanks for the help everyone sorry bout that hehe

CowboyInMe
03-02-2005, 05:24 AM
Wait...may not have been ID10T error...

The program runs in its Gui but when it execuets a command line command...the command prompt shows itself for a split second. How can i get it to stay in hiding?
-------------------------


Solved, the power of winapi functions...
Thanks again yall