During my cocos2D-x development with Visual Studio, I noticed that I can run my games pretty fine when I execute them via Visual Studio (F5 or Shift+F5,) but when I try to run the .exe file directly, it crashes.

After some trial and errors, I figured out that this crash is due to the .exe not being able to find game resources. To fix this crash just copy whatever’s inside your Resources folder to your Debug.win32 or Release.win32 folder and everything will run fine.