How do I stop "press any key to continue . . ." appearing in a console application?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I create an empty console project with Visual Studio 2005. I add one source file (Main.cpp) containing the following code:
 
int main (int, char*)
{
 return 0;
}
I produce a release build.
When I run the executable the on Windows Server 2003, the cmd window displays this text that I did NOT program and do NOT want: press any key to continue . . .
How can I get rid of this text?
(I want the cmd window to just disappear when there is nothing in main ()).
 
 
 

View the full article
 
Back
Top