Unable to get C ++ visual studio including "excpt.h" file to install

I am trying to compile a visual studio project in C ++, and I canโ€™t get anywhere because of the compiler "I can not open the include file:" excpt.h ": there is no such file or directory." This issue has been repeatedly reported on the Internet, but I cannot find any help regarding a specific situation. The problem is not that the project inclusion path is not configured correctly, the problem is that this file (and probably many other files) is simply missing from my computer. There is no such file on my hard drive. So I tried installing the Windows SDK 7.1. The file is not inside the installed SDK (although it should be). I tried to restore the installation, uninstall it, reinstall ... all the time. I am also trying to install, repair, uninstall, reinstall the professional multiple time Visual Studio 2010 with the Windows SDK installed and installed. I even tried to remove the professional version for installing Express VC ++ ... nothing works, no 'excpt.h' is never installed on my computer. I donโ€™t know ... does anyone have a hint of a solution? I am on Windows 7.

For additional information, please note that "excpt.h" is included in "windows.h". In addition, the file "excpt.h" is usually installed using the Windows SDK under a path such as "c: \ program files (x86) \ microsoft sdks \ windows \ v7.1 \ include \" and with Visual Studio under an outline similar to "C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ include \".

EDIT: if this can help, I can add that the C: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ include folder, associated with my Visual Studio installation, has only two files ... which, of course, is not normal! !! However, I cannot find a way to install the installer to install all the .h files that should appear in this repertoire.

+7
source share
7 answers

For those who have the same problem, here is the solution I found after 10 hours of install / uninstall / cleanup cycles ... I removed the fully visual studio using this . After that, using the control panel, I removed the Windows SDK and everything that could be connected with it, or using visual studio (for example, .NET framework). Then I deleted all remaining spaces manually by deleting the visual studio and the Windows SDK folders located in the C: / Program files. Finally, I deleted all entries related to the Windows SDK or Visual Studio in the registry (they are located in HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft). Then I reinstalled Visual Studio ... and it finally worked correctly. I must add that I restarted and cleaned the registry using CCleaner after any installation or uninstallation step.

+3
source

See if you have C: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ VC \ include \ excpt.h. Verify that the correct include-paths are correct in Visual Studio. If all else fails, delete everything, all SDKs, etc. And reinstall Visual C ++.

Third-party search programs do a better job than Windows for finding things. Try Agent Rensek. It's free.

+3
source

I had the same problem and tried the answer given by OP, but that didn't work. However, copying the contents of C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC (specifically bin, lib, and include) from the machine that was running on this computer worked.

+2
source

The Visual Studio 2012 installer seems to be buggy when it comes to installing to a different drive letter than C :. I installed VS2012 in drive D: and got the same error. I found that for some unknown reason, the installer placed some files in the right place at:

D: \ Program Files (x86) \ Microsoft Visual Studio 11.0

but the rest of the files were in

C: \ Program Files (x86) \ Microsoft Visual Studio 11.0

so I moved the files from C: to D: and he fixed the problem.

+1
source

Some situation causes such a problem. If you uninstall vs2010. You have lost the C ++ binaries for the .NET Framework 4 forever. You must remove all VS 2010 2012 2013, clean the system and its components, and reinstall them from scratch. Or you can download this package . Include them in your project that can solve your problem correctly.

0
source

one way is simeple, just copy the vc directory (C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC) from another computer

0
source

Fixing your installation of Visual Studio is a good idea, but you do not have to reinstall the same old version of VS. I uninstalled VS 2015 and then modified the VS 2017 installation to add the VC ++ v140 build tools, and now my project is under construction.

0
source

All Articles