I made a screen saver in C that uses SDL. I put it in System32 along with the folder of pictures it uses and SDL.dll but I get an error when I try to run it. It can’t find SDL.dll! It works in any other folder with SDL.dll in it. Why not System32? I’m not even trying to run it as a screen saver. When I right click it and hit “Test” it says it can’t find SDL.dll. What is wrong? What should I do?
Share
Put
SDL.dllsomewhere on thePATH. Windows needs to be able to find it, and it doesn’t know to look in the folder you created.You can tell how Windows looks for DLLs by reading the documentation for LoadLibrary: