Irrlicht without the console

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
Guest

Irrlicht without the console

Post by Guest »

can we use the engine without the console(in windows) popping out?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

on Dev-cpp compile as a windows application instead of a console application. VC++ has a similar option, I forget exactly what it is.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

for vc++ 6 its a win32 application as opposed to console application but you have to run int main() like this:

Code: Select all

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
{

take a look at the source for guice it'll show you a working example and guice is designed to compile fresh out of the rar.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

In MSVC you have to use WinMain instead of main like Midnight said PLUS you need to set the SUBSYSTEM to WINDOWS instead of CONSOLE in the project settings (Linker/System).
It is like it is. And because it is like it is, things are like they are.
Post Reply