I have been dealing with this problem the whole day. The problem happened after I uninstalled visual studio from control panel. I installed visual studio professional again from webinstaller. Then I started getting these error messages:
Cannot open include file: 'stdlib.h'
Cannot open include file: 'excpt.h'
Cannot open include file: 'afxwin.h'
Cannot open include file: 'math.h'
I tried to uninstall and install several times, but it didnt help, I tried to install visual studio premium, didnt help also, somehow these header files are missing from the directory where they are supposed to be. I also searched my computer these files does not exist...I tried to repair visual studio 2010 SP1...it didn't help also.
EDIT1: I tried to create a win32 console application, and I left everything as the default:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
And I got this compiler error:
fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory