问题
I am making a game using dx11
. When I compile and run the code in visual studio it works fine however if I try and run the code from the .exe file in either the debug or release folders I got the following error:
"Could not initialize direct sound"
I have not moved the folders/directories at all.
Is this something to do with direct sound not being compatible with dx11
? If so why would it still run inside visual studio.
I am using MS Visual Studio 10. My direct sound class has the following:
#pragma comment(lib, "dsound.lib")
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "winmm.lib")
#include <windows.h>
#include <mmsystem.h>
#include <dsound.h>
#include <stdio.h>
Advance Thanks
来源:https://stackoverflow.com/questions/15543918/application-works-in-visual-studio-but-release-debug-exe-does-not