SFML community forums

Help => General => Topic started by: Madras on July 24, 2012, 06:15:37 pm

Title: [SFML 2.0] [VC++ 2008] Console in background
Post by: Madras on July 24, 2012, 06:15:37 pm
Hallo! I have been programming SFML since one hour. ;D I have got a problem. Is there any way to tell compiler that console in the background haven't to be run? It's annoying. I know there's a method, because PONG (in SFML-2.0-rc-windows-32-vc2008.zip/examples) haven't got any console in bg while it's running.

I recompiled PONG from source, but black console still appear. I tried to change 'console aplication' to 'empty project' in MSVC++ project settings, but this didn't work out.

Thanks for any sugestions. :)
Title: Re: [SFML 2.0] [VC++ 2008] Console in background
Post by: eXpl0it3r on July 24, 2012, 06:19:08 pm
There's a search function for a reason... ::)

http://en.sfml-dev.org/forums/index.php?topic=4717 (http://en.sfml-dev.org/forums/index.php?topic=4717)
http://en.sfml-dev.org/forums/index.php?topic=3941.0 (http://en.sfml-dev.org/forums/index.php?topic=3941.0)

And many more... (also google does crawl this forum) ;)
Title: Re: [SFML 2.0] [VC++ 2008] Console in background
Post by: Madras on July 24, 2012, 06:45:39 pm
Still I haven't got any solution in MSVC++. I tried to change console application.  :-\
Anyway, thanks for your reply. :)
Title: Re: [SFML 2.0] [VC++ 2008] Console in background
Post by: eXpl0it3r on July 24, 2012, 06:47:46 pm
Link against sfml-main.lib (release) or sfml-main-d.lib (debug) and change the setting in Project->Settings->Linker->System->SubSystem to Windows and your good to go...
Title: Re: [SFML 2.0] [VC++ 2008] Console in background
Post by: Madras on July 24, 2012, 07:02:00 pm
eXpl0it3r now it's working like a charm. :D Just I didn't include sfml-main.lib before. xD
Thank you very much!!