编译器找不到DirectX头文件 [英] Compiler doesn't find DirectX header files

查看:184
本文介绍了编译器找不到DirectX头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是C ++世界的新手,我正在尝试编译一个在2000年开发的项目,该项目可以在directx9.0中使用.

我收到致命错误c1083:

Hi

I am new to C++ world, I am trying to compile a project which is developed in 2000, which works in directx9.0.

I am getting fatal errors c1083:

fatal error C1083: Cannot open include file: ''dxerr9.h'': No such file or directory 
fatal error C1083: Cannot open include file: ''dinput.h'': No such file or directory 


我下载了dxerr9.h并包含在头文件目录中,但仍然给我错误,任何人都可以帮我这个忙.

我使用的是VS2008,Directx11和Windows7.我尝试卸载Directx11并安装Directx9,但说没有必要安装.

Muralekarthick


I downloaded dxerr9.h and included in the header file directory still it gives me error, can anyone help me in this please.

I am using VS2008, Directx11 and Windows 7. I tried to uninstall directx11 and install directx9 but it''s saying not necessary to install.

Muralekarthick

推荐答案

1)转到工具|选项|项目和解决方案| VC ++目录

2)在右侧的下拉菜单上,选择包含文件"

3)在安装的头文件的路径中添加.使丢失的文件位于该文件夹中.

4)重新启动Visual Studio.
1) Go to Tools | OPtions | Projects and Solutions | VC++ Directories

2) On the right drop down menu select Include files

3) Add in the path of your header files that you installed. Make sur ethe files you are missing are within that folder.

4) Restart Visual Studio.


这篇关于编译器找不到DirectX头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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