DirectX SDK project - porting to VS2012

☆樱花仙子☆ 提交于 2020-01-02 07:10:15

问题


I'm porting to visual studio 2012 a solution with a project which uses some headers from the directX SDK in this path:

C:/../Microsoft DirectX SDK (June 2010)/Samples/C++/DXUT11/Core

the problem is: I'm encountering all the (in)famous re-definitions warnings:

14>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(12): warning C4005: 'DXGI_STATUS_OCCLUDED' : macro redefinition
14>          C:\Program Files (x86)\Windows Kits\8.0\Include\shared\winerror.h(49449) : see previous definition of 'DXGI_STATUS_OCCLUDED'

and the only solution I found is to eliminate the SDK path (which is C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Include) from my project. Unfortunately I can't do it this time because I need the DXUT11

Any advice on how to completely port to VS2012 such a project?


回答1:


The instructions you need are buried in MSDN here, the crucial part of which is copied below for posterity.



来源:https://stackoverflow.com/questions/16613980/directx-sdk-project-porting-to-vs2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!