SFML community forums

Help => Window => Topic started by: Prominence256 on January 27, 2011, 01:08:40 am

Title: [VS2010] How do you get rid of the console window?
Post by: Prominence256 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
Title: [VS2010] How do you get rid of the console window?
Post by: ratzlaff on January 27, 2011, 01:45:34 am
http://www.sfml-dev.org/forum/search.php

Use: _WinMain as your search criteria
Title: [VS2010] How do you get rid of the console window?
Post by: Prominence256 on January 27, 2011, 01:52:33 am
Thanks, I linked it to sfml-main and now it works :D
Title: [VS2010] How do you get rid of the console window?
Post by: bmn on January 27, 2011, 06:19:58 pm
How would you do this in CSFML, since there is no csfml-main.lib anywhere?
Title: [VS2010] How do you get rid of the console window?
Post by: Groogy on January 27, 2011, 06:24:20 pm
Just use the C++ one. There's no actual C++ code that you will use.
Title: [VS2010] How do you get rid of the console window?
Post by: bmn on January 27, 2011, 06:39:16 pm
Ah, thanks, now everything is working perfectly.