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

Author Topic: [VS2010] How do you get rid of the console window?  (Read 3247 times)

0 Members and 1 Guest are viewing this topic.

Prominence256

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://GameMakerStation.110mb.com/
[VS2010] How do you get rid of the console window?
« on: January 27, 2011, 01:08:40 am »
I've successfully made a screen saver with VS2010. It works great, but when it opens the console appears just before the RenderWindow does, and it closes just after the RenderWindow. I want to get rid of that console window.

I've tried going into the project's properties and changing Configuration Properties -> Linker -> System -> SubSystem to Windows. However, when I tell it to compile I get this error in the file MSVCRT.lib(crtexew.obj)
Quote from: "Visual Studio 2010"
error LNK2001: unresolved external symbol _WinMain@16

ratzlaff

  • Newbie
  • *
  • Posts: 33
    • View Profile
[VS2010] How do you get rid of the console window?
« Reply #1 on: January 27, 2011, 01:45:34 am »
http://www.sfml-dev.org/forum/search.php

Use: _WinMain as your search criteria

Prominence256

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://GameMakerStation.110mb.com/
[VS2010] How do you get rid of the console window?
« Reply #2 on: January 27, 2011, 01:52:33 am »
Thanks, I linked it to sfml-main and now it works :D

bmn

  • Newbie
  • *
  • Posts: 18
    • View Profile
[VS2010] How do you get rid of the console window?
« Reply #3 on: January 27, 2011, 06:19:58 pm »
How would you do this in CSFML, since there is no csfml-main.lib anywhere?

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
[VS2010] How do you get rid of the console window?
« Reply #4 on: January 27, 2011, 06:24:20 pm »
Just use the C++ one. There's no actual C++ code that you will use.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

bmn

  • Newbie
  • *
  • Posts: 18
    • View Profile
[VS2010] How do you get rid of the console window?
« Reply #5 on: January 27, 2011, 06:39:16 pm »
Ah, thanks, now everything is working perfectly.

 

anything