SFML community forums

Help => General => Topic started by: Calyxis on January 10, 2009, 05:44:03 pm

Title: Disable CMD?
Post by: Calyxis on January 10, 2009, 05:44:03 pm
Hi community, i have a question about disabling the cmd window when using the int main(); procedure.
When I use the WinAPI method (with CreateWindow) the cmd window doesn't appear and this is what i want. But I don't want to initialize WinAPI and that other stuff. I just want to use int main();

How can i disable the cmd window? Or do I have to change settings in my IDE? I use MSVC 2008 Express. Sorry I am new to SFML.

Thanks
Title: Disable CMD?
Post by: Laurent on January 10, 2009, 06:07:25 pm
Just link to sfml-main. It's explained in the first tutorial of the Window module.
Title: Disable CMD?
Post by: klusark on January 10, 2009, 08:22:00 pm
You may also need to set the linker subsystem to Windows
Title: Disable CMD?
Post by: Calyxis on January 10, 2009, 08:24:44 pm
Ok thank you for helping :)