I installed VS 2015 Express, which said it was the VS 2017 community when it started, and had this problem with altbase.h with very simple C ++ programs. You can commit to receiving accurate include files, or you can take a step back to solve this problem. Microsoft is a large, thorough company, when they give you the C ++ compiler, they give you the libraries you need. When I fixed this problem, I
- launched Visual Studio as an administrator.
- Win32 C ++ Console Application Created
- I did NOT check the "Empty project" on the C ++ project creation wizard.
- Did NOT check common header files for ATL and MFC.
Then, when I added my code, the generated stdafx.h header, enabled by default, did not cause this altbase.h problem, as it did before. I was able to add other functions and did "using namespace std;" and I was able to do cout and cin's. My base operating system is Windows 7 Home Premium. Obviously, when installing VS 2015/2017 Express, you had to set the C ++ checkbox to install.
flashgordon
source share