Remove the Dos window
-
NicholasMag
- Posts: 45
- Joined: Fri Mar 09, 2007 8:06 pm
Remove the Dos window
Ok, ive searched the forums under the keywords: remove, dos, window. But no luck at finding this. Is there anyway to get rid of the dos window that runs when runnign Irrlicht?
the simplest way ( if your talking about windows ), is to use a winmain instead of a main.
if you want to have code that runs on multiple OSs then just #def it.
be sure to also include the windows headers
if you want to have code that runs on multiple OSs then just #def it.
Code: Select all
#ifdef _WIN32
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR pCmdLine, int nCmdShow)
#else
int main()
#endif
{
//yada yada;
return 1;
}Code: Select all
#ifdef _WIN32
#include <windows.h>
#endif// _WIN32
JeffM2501
chek tis topic i got helpt from it http://irrlicht.sourceforge.net/phpBB2/ ... ht=#107242