C++ cannot find stdafx.h

2.6k Views Asked by At

My program was working fine until I decided to rename one of the directories in where I have my projects. I tried changing the name back to the original but now it's giving me problems where it can't find .h files when their obviously still there in the project explorer. The first one it tells me is that it cannot find stdafx.h

1

There are 1 best solutions below

0
On BEST ANSWER

I gave up and just spent the last 30min copying an old version and replacing the old version with the newer code files. Visual Studio should have some type of feature to rescan your project to make sure the directories line up with the current directories.