Windows 7 user? Visual Studio 2013? Program works OK when you run it from Visual Studio but doesn't work when you run it standalone? Error message is that d3dcompiler_47.dll is missing?
This DLL isn't installed by any vcredist, it's part of DirectX but - for some reason - Microsoft don't provide it for Windows 7. You can go to Windows Update as much as you like, you can update your DirectX, you won't get it.
Another solution is to compile your shaders offline and include the blobs with your distributed program. You don't need to go near d3dcompiler_47.dll at all then.
A third solution is to dynamically link using LoadLibrary and GetProcAddress. Try 47, if it doesn't succeed try 46, then 45, and so on. d3dcompiler_43.dll was the latest version included with Windows 7 (d3dcompiler_33 was the first), so either you'll eventually succeed or the user just needs to update their DirectX.
Yes, this is the same kind of mess as the "D3DX DLL hell" thhat we had with DirectX 9. :( :( :( :( :(
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.