When I compiled this program (from C++ Programming Language 4th edition):
main.cpp
#include #include #incl
You can fix this problem by adding "$(ProjectDir)" (or wherever the stdafx.h is) to list of directories under Project->Properties->Configuration Properties->C/C++->General->Additional Include Directories.