Remove the Dos window

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
NicholasMag
Posts: 45
Joined: Fri Mar 09, 2007 8:06 pm

Remove the Dos window

Post by NicholasMag »

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?
jeffm2501
Posts: 9
Joined: Sat Sep 23, 2006 4:07 pm
Location: California, US
Contact:

Post by jeffm2501 »

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.

Code: Select all

#ifdef _WIN32
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR pCmdLine,  int nCmdShow)
#else
int main()
#endif
{
  //yada yada;
  return 1;
}
be sure to also include the windows headers

Code: Select all

#ifdef _WIN32
#include <windows.h>
#endif// _WIN32
JeffM2501
kompromis
Posts: 98
Joined: Mon Sep 11, 2006 2:36 pm
Location: sweden/stockholm

Post by kompromis »

Post Reply