DirectX SDK项目-移植到VS2012 [英] DirectX SDK project - porting to VS2012

查看:162
本文介绍了DirectX SDK项目-移植到VS2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将向Visual Studio 2012移植一个项目的解决方案,该项目在以下路径中使用来自DirectX SDK的一些标头:

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'

,我发现的唯一解决方案是从我的项目中消除SDK路径(即C:/Program Files(x86)/Microsoft DirectX SDK(2010年6月)/Include).不幸的是,这次我不能这样做,因为我需要DXUT11

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

关于如何将这样的项目完全移植到VS2012的任何建议?

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

推荐答案

您需要的说明是

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

这篇关于DirectX SDK项目-移植到VS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆