Stack Overflow Stack Overflow - 7 days ago 6
C++ Question

Visual Studio (.exe) export not working

I've made a simple program in c++ and SDL that utilizes both SDL_Mixer and SDL_Image. However when I try to run the

.exe
in the debug folder I receive a black screen with no sound or images despite the program working quite properly in Visual Studio. All the dll's are where they should be and I've made sure everything should work. So why am I receiving a black screen instead of my program. Thanks.

Answer

I receive .. no .. images despite the program working quite properly in Visual Studio.

If you're using relative paths to load external resources like images then verify your program's working directory matches what it is when Visual Studio launches it.