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

Author Topic: SFML and Visual Studio 2017 -Can only execute manually (not by F5, no debugging)  (Read 1252 times)

0 Members and 2 Guests are viewing this topic.

balsamico

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hello,

i want to get startet with SFML in C++ and i set up VS2017 for this. I think I did everything correctly because when I try to compile and execute this HelloSFML-example, there is a HelloSFML.exe in the debug-directory. Unfortunately VS only gives me an error-message which says this exe cannot be executet and there is an unknown error in the framework of Windows-webservice (It's in German, so I can't tell you the exact words). Actually everything is working, because I can start the exe manually and it works. I could to this everytime like that but debugging is not possible this way. Did anybody have this problem or does anybody have a solution or an idea what I could try? The only idea I had was to run VS in admin-mode -no success.

I use Win7 64, Visual Studio 2017, SFML 2.4.2 for Visual C++ 14 (2015) - 64-bit (supposed to work with VS2017)

Thanks a lot!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Sounds like an issue with VS, might want to try finding help in the Microsoft communities.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

balsamico

  • Newbie
  • *
  • Posts: 2
    • View Profile
As far as I found out, windows doesn't allow a 32-bit-program, VS 2017 in this case, to debug a 64-bit-program. So I downloaded the 32-bit-library and switched to 32-bit in VS and now everything works...

Does this mean, nobody uses 64-bit SFML and Visual Studio?

Is there a noticable advantage of 64-bit?