询问者
求助DX11龙书示例程序的问题

问题
全部回复
-
Hi yixi_hu95,
感谢在MSDN论坛发帖。
>> 程序写好了以后,编译时提示错误 83
error C2061: 语法错误: 标识符“DXGI_RGBA” c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h
1275 1 MyChapter6Shapes查了一下是因为老版的DX SDK和Windows sdk里自带的dx头文件冲突的原因,试了很多方法解决不了,都说的很模糊,求助这个问题怎么解决,谢谢了!
老版的DirectX 11 SDK和新的Windows SDK是不兼容的。对于你这种情况,建议你使用其他方式替代老版DirectX 11 SDK。
从Windows 8开始,DirectX SDK作为Windows SDK的一部分。想要获取更多详细信息,可以参考以下文档。
https://msdn.microsoft.com/en-us/library/windows/desktop/ee663275.aspx
你也可以使用DirectX Tool Kit for DirectX 11来代替。
https://github.com/Microsoft/DirectXTK
这里有篇博客,你可以参考一下。
https://blogs.msdn.microsoft.com/chuckw/2013/08/20/living-without-d3dx/
希望对你有所帮助。
Best Regards,
Sera YuMSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.
- 已建议为答案 Angie Xu 2017年8月2日 2:58
-
Hi yixi_hu95,
请问你的问题解决了吗?如果已经解决了,请标记可用答案。
谢谢你的理解与支持。
Best Regards,
Sera YuMSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.