hiding the DOS box
hiding the DOS box
is it possible to hide the irrlicht DOS box when running an irrlicht program?
if yes then how.
thanks
if yes then how.
thanks
Change from console to gui project...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
and also change:
to
Code: Select all
int main()
Code: Select all
INT WINAPI WinMain(HINSTANCE hInst,HINSTANCE,LPSTR strCmdLine,INT)
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
or use just this (no need to include additional files)
just place this line at the top of the file (setting this up in build configs is what i do, so debug config shows the console, and release config doesnt)
(there is some controversy over this method, but have not found a single problem with it, found this on MSDN. the SUBSYSTEM says its a gui, ENTRY tells it to start with main() instead of winmain)
just place this line at the top of the file (setting this up in build configs is what i do, so debug config shows the console, and release config doesnt)
Code: Select all
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:main")
Well, I'm using Code::Blocks, too !!!
It's a great IDE !!!
I only change the project type to GUI and leave the sub main as it is !!!
The pragma comments don't work with MinGW (C::B's default compiler), they are just for MSVC++...
Well, my IrrComp should work on any Windows system...
But only with DevC++ or Code::Blocks installed !!!
For example have a look at my IrrCube or IrrTris, both are compiled with C::B !!!
It's a great IDE !!!
I only change the project type to GUI and leave the sub main as it is !!!
The pragma comments don't work with MinGW (C::B's default compiler), they are just for MSVC++...
Well, my IrrComp should work on any Windows system...
But only with DevC++ or Code::Blocks installed !!!
For example have a look at my IrrCube or IrrTris, both are compiled with C::B !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm