如何设置全局包含目录? [英] How to set global include directory?

查看:102
本文介绍了如何设置全局包含目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多项目链接到DirectX。问题是,每次发布新的DirectX时,它都会安装到如下目录中:

左右:C:\Program Files \ MicrosoftMicrosX SDK(2009年8月)

和我必须转到每个项目来更改C ++ include目录:(

有没有办法全局设置?

I have many projects linked to DirectX. The problem is, everytime a new DirectX is released, it installed into a directory like:

C:\Program Files\Microsoft DirectX SDK (August 2009)

And I have to goto each and every project to change the C++ include directory :(

Is there a way to set this globally?

推荐答案

Chui,
我想不出在不同项目中设置引用的方法,但是如果你在不同的项目中使用相同的组件,你可以将directx组件分成单独的DLL,然后添加这个将这个方法安装到主项
希望这有助于

问候

鲁珀特
Chui,

I can't think of a way to set the references across different projects, but if your using the same component in different projects can you seperate the directx components into a seperate DLL and then add this project into the main project.

This way when you need to incorporate the new version of directx then you change the reference in the directx dll project and it automatically changes in all the parent projects.

Hope this helps

Regards

Rupert


这篇关于如何设置全局包含目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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