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

Author Topic: Run any computer.  (Read 2514 times)

0 Members and 1 Guest are viewing this topic.

_4004

  • Newbie
  • *
  • Posts: 12
    • View Profile
Run any computer.
« on: May 02, 2019, 12:47:26 pm »
Hello there. I did interface design with tgui to get rid of the console screen. On the console screen (project version 1) I played without any errors. I made this project with vs2013. When I switch to vs2017(project version 2), I can't play it myself but on other computers (64bit computer) my project. Error code: 0xc000007b.

ucrtbased.dll missing, I copied to project location after the download file.
vcruntime140d.dll missing, i copied to project location after the download file.
After 2 file copied error code: 0xc000007b.
Why?


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Run any computer.
« Reply #1 on: May 02, 2019, 01:19:55 pm »
It's best to install the correct VS runtime libraries on the target system.
If you do want to copy the DLLs next to your binary, you have to make sure you pick the correct architecture.

The 0xc000007b indicates that you probably copied an x64 lib while your application is compiled for x86 or the other way around.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

_4004

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Run any computer.
« Reply #2 on: May 02, 2019, 07:58:05 pm »
Yes I chose 64 bit. I'm sure of that.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Run any computer.
« Reply #3 on: May 02, 2019, 08:23:08 pm »
What does that mean exactly?

Does your compiler architecture settings and the retrieved DLL architecture match?
Did you actually check or are you just vaguely remembering from memory? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

fallahn

  • Hero Member
  • *****
  • Posts: 507
  • Buns.
    • View Profile
    • Trederia
Re: Run any computer.
« Reply #4 on: May 02, 2019, 11:17:01 pm »
vcruntime140d.dll and ucrtbased.dll are debug versions (there's a 'd' on the end of the file names). You want to build in Release mode before distributing.

 

anything