We have several projects where we #include "resource.h" in stdafx.h (I know,
bad practice, but let's ignore that for now). For some reason when we make
a change to resource.h and build the project, the compiler doesn't realise
it needs to rebuild stdafx.cpp. It thinks everything is up to date. But
when it compiles the .cpp file that uses the new ID we just defined, say, it
gives an error that the ID is not defined, because it hasn't compiled the
new resource.h. So any time we change resource.h, we have to Rebuild All
instead of just Build.
Any idea why that would be? Other .h files included in stdafx.h work just
fine--when they change the compiler knows to rebuild stdafx.cpp etc.
Nate Hekman
Calgary, Alberta, Canada