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

Author Topic: [SFML 2.0] [VC++ 2008] Console in background  (Read 1989 times)

0 Members and 1 Guest are viewing this topic.

Madras

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
[SFML 2.0] [VC++ 2008] Console in background
« 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. :)
« Last Edit: July 24, 2012, 06:17:14 pm by Madras »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: [SFML 2.0] [VC++ 2008] Console in background
« Reply #1 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=3941.0

And many more... (also google does crawl this forum) ;)
« Last Edit: July 24, 2012, 06:20:55 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Madras

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: [SFML 2.0] [VC++ 2008] Console in background
« Reply #2 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. :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: [SFML 2.0] [VC++ 2008] Console in background
« Reply #3 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...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Madras

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: [SFML 2.0] [VC++ 2008] Console in background
« Reply #4 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!!