在VS2017中调试可执行文件时无法打开头文件 [英] Can't open headers files when debugging executable in VS2017

查看:642
本文介绍了在VS2017中调试可执行文件时无法打开头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在通过cl命令编译我的项目,并仅使用VS2017来调试可执行文件。我无法打开windows.h,xinput.h和dsound.h,但我可以跳转到stdint.h。我有一些错误,如"文件"dsound.h在当前文件的目录或build
系统路径中找不到。 ..." ;.当我在VS2017中重新创建项目时,一切正常,我可以打开所有头文件。

I am compiling my project via cl command and use VS2017 only to debug executable. I can't open windows.h, xinput.h and dsound.h, but I am able to jump to stdint.h. I've got such errors as "File 'dsound.h not found in current files's directory or in build system paths. ...". When I recreated project in the VS2017 everything in working and I can open all headers files.


我将所有标题放在C:\Program Files(x86)\ Windows Kits \ ...中,项目正在编译并正常工作。

I located all headers in C:\Program Files (x86)\Windows Kits\... and project is compiling and working without problems.

推荐答案

您好s13242,

Hi s13242,

您是如何在您身边调试项目的?

How did you debug your project in your side?

你能直接在你的VS2017中打开这个项目吗?

Can you open this project in your VS2017 directly?

>>我发现了如下错误:'找不到文件'dsound.h在当前文件的目录或构建系统路径中。 ..." ;.

>>I've got such errors as "File 'dsound.h not found in current files's directory or in build system paths. ...".

请检查您是否忘记包含或引用这些头文件的路径,如以下主题:

Please check that whether you forget to include or refer to the path for those header files like the following thread:

http://stackoverflow.com/questions/12490015/visual-studio-cant- see-my-included-header-files

http://stackoverflow.com/questions/1424693/unable-to-find-dsound-h-after-installing-directx-9-0c- on-windows-xp

如果我误解了这个问题,请随时告诉我。

If I have misunderstood this issue, please feel free to let me know.

最诚挚的问候,

杰克


这篇关于在VS2017中调试可执行文件时无法打开头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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