stdafx.h is a Microsoft invention used to help speed up C++ compilation. Instead of parsing your 100000 lines of headers for every source file, you would do it once, and the compiler would dump its state to disk. Then, whenever you started another source file with `#include <stdafx.h>`, instead of repeating that work, it would load that state into memory and pick up compiling from there.