Directx变更

编程入门 行业动态 更新时间:2024-10-26 20:21:38
本文介绍了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.

msdn.microsoft/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

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.

可能,您有兴趣阅读此和也回答。

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变更

本文发布于:2023-08-01 08:57:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267043.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Directx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!