hide CMD in VS2005

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Fk
Posts: 6
Joined: Thu Jul 10, 2008 12:46 pm
Location: Russia
Contact:

hide CMD in VS2005

Post by Fk »

Hi @All.
I use Irrlicht with C++ (Visual Studio 2005 C++ without .NET)
Can everyone say me how i can hide the CMD Window?

Thanks for help.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

http://irrlicht.sourceforge.net/tut001.html
Hello World wrote:On Windows platforms, we have to get rid of the console window, which pops up when starting a program with main(). This is done by the second pragma. We could also use the WinMain method, though losing platform independence then.

Code: Select all

#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply