Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Disable CMD?  (Read 2012 times)

0 Members and 1 Guest are viewing this topic.

Calyxis

  • Newbie
  • *
  • Posts: 2
    • View Profile
Disable CMD?
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Disable CMD?
« Reply #1 on: January 10, 2009, 06:07:25 pm »
Just link to sfml-main. It's explained in the first tutorial of the Window module.
Laurent Gomila - SFML developer

klusark

  • Newbie
  • *
  • Posts: 45
    • View Profile
Disable CMD?
« Reply #2 on: January 10, 2009, 08:22:00 pm »
You may also need to set the linker subsystem to Windows

Calyxis

  • Newbie
  • *
  • Posts: 2
    • View Profile
Disable CMD?
« Reply #3 on: January 10, 2009, 08:24:44 pm »
Ok thank you for helping :)