DirectX编译环境配置
VS2008/2010/2012 -> Project -> Properties -> Configuration Properties ->
VC++ Directories -> Include Directories -> 添加 $(DXSDK_DIR)Include;
VC++ Directories -> Library Directories -> 添加 $(DXSDK_DIR)Lib\x86; $(DXSDK_DIR)Lib\x64;
Linker -> Input -> Additional Dependencies -> 添加 d3d11.lib; d3dx11.lib; dxerr.lib;
或者在代码头部的#include<>后面加入:
#pragma comment (lib, "d3d11.lib")
#pragma comment (lib, "d3dx11.lib")
#pragma comment (lib, "dxerr.lib")