小编The*_*ski的帖子

使用VS2012和DirectX的警告(2010年6月)

我正在尝试继续在VS2012中处理我的VS2010项目.我使用Directx 11(2010年6月)发布,每当我调试我的代码时,都会弹出一堆警告.

像这样:

6>C:\Program Files\Microsoft DirectX SDK (June 2010)\Include\D2DErr.h(59):
warning C4005: 'D2DERR_WRONG_STATE' : macro redefinition
6>C:\Program Files\Windows Kits\8.0\Include\shared\winerror.h(49859):
see previous definition of 'D2DERR_WRONG_STATE'
6>C:\Program Files\Microsoft DirectX SDK (June 2010)\Include\D2DErr.h(64):
warning C4005: 'D2DERR_NOT_INITIALIZED' : macro redefinition
6>C:\Program Files\Windows Kits\8.0\Include\shared\winerror.h(49868):
see previous definition of 'D2DERR_NOT_INITIALIZED'
Run Code Online (Sandbox Code Playgroud)

有没有办法让警告消失,而不会禁用它们.或者我应该将我的代码转换为具有directx的Windows sdk 8.0,然后从项目中完全删除旧的DX(2012年6月).

c++ winapi directx-11 c++11 visual-studio-2012

3
推荐指数
1
解决办法
2495
查看次数

标签 统计

c++ ×1

c++11 ×1

directx-11 ×1

visual-studio-2012 ×1

winapi ×1