Directx变更 [英] Directx changes

查看:76
本文介绍了Directx变更的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对win8和DirectX库有问题。我有DirectX Jun 2010我添加了其d3dx11.lib和.h文件,但它不起作用,并说找不到库。我发现以下波纹管说您可以使用win8 sdk代替DirectX库和d3dx...。不再支持库。

i have a problem with win8 and directx library. i have directx jun 2010 i added its d3dx11.lib and .h files but it doesnt work and says library not found. i found hte link bellow that says you can work with win8 sdk instead of directx libraries and d3dx.... libraries are not supported anymore.

http://msdn.microsoft.com/zh-CN /library/windows/desktop/ee663275%28v=vs.85%29.aspx

我在vs2012中发现有一个构建DirectX程序的项目,但是当我用它制作一个项目时,它不像在它之前更像xna

看到的任何DirectX代码ive,这到底是什么意思?我应该如何应对这些变化?最好返回赢7和以前的库,或者使用这些新工具。感谢您的帮助

i found in vs2012 there is a project that builds directx proggram but when i made a project with it it wasnt like any directx code ive seen before its more like xna
what these really mean? how should i work with these changes? its better to return to win 7 and previous libraries or work with these new tools. thanks for helping

推荐答案

DirectX SDK在哪里?很好地解释了这一点。可能您想再读一遍。

"Where is the DirectX SDK?" explains that well. Probably you will want to read it one more time.

D3DX

< a href = http://en.wikipedia.org/wiki/D3DX rel = nofollow noreferrer> D3DX 和D3D是不同的。 D3DX只是一个帮助程序库。 Microsoft不建议再使用D3DX并将其从SDK中剥离。所以现在:

D3DX and D3D is not the same. D3DX is just a helper library. Microsoft not recommends to use D3DX anymore and stripped it from SDK. So now:


  • 对于新代码没有D3DX的生活解释了如何在新代码中使用。并且此处是D3DX的替代品。

  • 对于旧代码:如果您只想构建使用D3DX的旧代码(例如,教程示例),则只需要安装DirectX SDK并将include / lib路径添加到项目中,就像其他任何库一样。不建议将Windows SDK和DirectX SDK混合使用,否则可能会导致错误,因此请不要在新代码中使用它。另请在此处阅读。

  • For new code: "Living without D3DX" explains what to use instead in your new code. And here are some D3DX replacement stuff.
  • For old code: if you just want to build old code that uses D3DX (tutorial samples, for example), you just need to install DirectX SDK and add include/lib paths to your project, as if it was any other library. Mixing Windows SDK and DirectX SDK is not recommended and can lead to errors, so don't use it in new code. Also read here.

可能,您有兴趣阅读和< a href = https://stackoverflow.com/questions/17179885/directx-in-windows-8-sdk/17184487#17184487>也回答。

Probably, you will be interested to read this and that answer also.

PS 与往常一样,如果链接器说找不到库,请仔细检查,是否已将库路径添加到项目选项中,并且该文件夹中存在该库文件。

P.S. As always, if linker says, "Library not found", double check, that you've added library path to project options and that library file exists at that folder.

祝您编程愉快!

这篇关于Directx变更的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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