无法安装 Visual Studio C++ 包含文件“excpt.h" [英] Can't get visual studio C++ include file 'excpt.h' to get installed

查看:34
本文介绍了无法安装 Visual Studio C++ 包含文件“excpt.h"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译 Visual Studio C++ 项目,但由于编译器报告无法打开包含文件:‘excpt.h’:没有此类文件或目录",我无法到达任何地方.该问题已在 Internet 上多次报告,但我无法找到有关我的特定情况的任何帮助.问题不在于项目的包含路径设置不正确,问题在于我的计算机中缺少此包含文件(可能还有一堆其他文件).我的硬盘上没有这样的文件.所以我尝试安装 Windows SDK 7.1.该文件不在已安装的 SDK 中(尽管应该在).我尝试修复安装,卸载它,重新安装它......所有很多次.我还多次尝试安装、修复、卸载、重新安装 Visual Studio 2010 Professional,无论是否安装了 Windows SDK.我什至尝试卸载专业版来安装 express VC++...似乎没有任何效果,我的计算机上从未安装过excpt.h".我一无所知......有人有解决方案的暗示吗?我使用的是 Windows 7.

I'm trying to compile a visual studio C++ project and I can't get anywhere because of the compiler reporting "Cannot open include file: 'excpt.h': No such file or directory". The problem has been reported numerous times on the Internet but I can't find any help regarding my particular situation. The problem is not that the include path of the project are not correctly setup, the problem is that this include file (and probably a bunch of other files) are just missing from my computer. There is no such file on my hard drive. So I tried installing Windows SDK 7.1. The file is not inside the installed SDK (although it should be). I tried repairing the install, uninstall it, reinstall it... all numerous time. I also try to install, repair, uninstall, reinstall Visual Studio 2010 professional numerous time, with and without the Windows SDK installed. I even tried uninstalling the professional version to install the express VC++... nothing seems to work, no 'excpt.h' never get installed on my computer. I am clueless... someone has a hint of a solution? I'm on Windows 7.

作为补充信息,请注意excpt.h"包含在windows.h"中.此外,excpt.h"文件通常与 Windows SDK 一起安装在c:program files (x86)microsoft sdkswindowsv7.1include"之类的路径下,并且与 Visual Studio 一起安装在类似的路径下C:Program FilesMicrosoft Visual Studio 10.0VCinclude".

As supplementary information, note that 'excpt.h' is included in by "windows.h". Also, the "excpt.h" file is normally installed with the Windows SDK under a path like "c:program files (x86)microsoft sdkswindowsv7.1include" and with Visual Studio under a path like "C:Program FilesMicrosoft Visual Studio 10.0VCinclude".

如果有帮助,我可能会补充说与我的 Visual Studio 安装相关的文件夹 C:Program FilesMicrosoft Visual Studio 10.0VCinclude 只有两个文件......这当然不正常!!!但是,我找不到任何方法让安装程序安装所有应出现在此库中的 .h 文件.

If it might help, I might add that the folder C:Program FilesMicrosoft Visual Studio 10.0VCinclude related my Visual Studio install has only two files... which is certainly not normal!!! However, I can't find any ways to get the installer to install all the .h files that should appear in this repertory.

推荐答案

对于那些有同样问题的人,这里是我在大约 10 小时的安装/卸载/清理周期后找到的解决方案......我已经完全卸载了视觉工作室使用 this.之后,使用控制面板,我卸载了 Windows SDK 以及可以与其关联或与 Visual Studio 关联的所有内容(例如 .NET 框架).然后,我通过手动删除 Visual Studio 和位于 C:/Program 文件中的 Windows SDK 文件夹删除了所有剩余内容.最后,我删除了注册表中与 Windows SDK 或 Visual Studio 相关的所有条目(它们位于 HKEY_LOCAL_MACHINESOFTWAREMicrosoft).然后,我重新安装了 Visual Studio ......它终于正常工作了.我应该补充一点,在任何安装或卸载步骤之后,我都使用 CCleaner 重新启动并清理了注册表.

For those who have the same problem, here is the solution I found after about 10h of install/uninstall/cleaning cycles... I've uninstalled completely visual studio using this. After that, using the control panel, I've uninstalled the Windows SDK and everything that can be associated with it or with visual studio (e.g. .NET framework). Then, I've removed all the left overs by manually deleting the visual studio and the Windows SDK folders located in C:/Program files. Finally, I deleted all the entries related to the Windows SDK or to Visual Studio in the registry (they are located in HKEY_LOCAL_MACHINESOFTWAREMicrosoft). Then, I reinstalled Visual Studio... and it was finally working correctly. I should add that I restarted and cleaned the registry using CCleaner after any install or uninstall step.

这篇关于无法安装 Visual Studio C++ 包含文件“excpt.h"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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