Page 1 of 1

In the next update can you get rid of the console popup?

Posted: Sat Jul 26, 2008 6:34 am
by vonbrune
Yeah that console pop up window is annoying...

Posted: Sat Jul 26, 2008 6:54 am
by torleif
...

I don't think that will happen

Use this (before main() ):

Code: Select all

// hide console when building release build
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")

Posted: Sat Jul 26, 2008 7:18 am
by djzmo
replace

Code: Select all

#include <irrlicht.h>
with

Code: Select all

#include <irrlicht.h>
#ifdef _IRR_WINDOWS_
#include <windows.h>
#endif
then remove this line

Code: Select all

#pragma comment(lib, "Irrlicht.lib")
then replace

Code: Select all

int main()
with the code below

Code: Select all

#ifdef _WIN32
#pragma comment(lib, "Irrlicht.lib")
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char* argv[])
#endif

Posted: Sat Jul 26, 2008 5:02 pm
by sudi
or u simply switch ur compiler flag from console to gui application....why is nobody doing that....well

Re: In the next update can you get rid of the console popup?

Posted: Sat Jul 26, 2008 5:35 pm
by Virion
vonbrune wrote:Yeah that console pop up window is annoying...
no the console window is pretty useful when developers want to see what's going right/wrong with their game.

I suggest you to do some research before complaining...

Image

p/s. this is code::blocks