4 ms·
In a lot of Windowsy projects, there are files called stdafx.cpp and stdafx.h. I'm not sure what they do either.
by csense 13y ago
In a lot of Windowsy projects, there are files called stdafx.cpp and stdafx.h. I'm not sure what they do either.
- johnsoft 13y agostdafx.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.