Steps to reproduce problem:
In VS.NET 2005
1.Create console windows project (let it will be named as "testprj")
2.In stdafx.h declare class:
class ABCD {
void aaa();
};
3.In testprj.cpp we implement aaa():
void ABCD::aaa() {
}
If we try to Rename "aaa" from stdafx.h, everything will be ok. But:
5.Rename from IDE's Solution Explorer "testprj.cpp" to "testprjxxx.cpp"
6.Try to Rename "aaa" from stdafx.h, Refactor will find references only in stdafx.h but testprjxxx.cpp will be skipped!
You can save, you can compile... but refactor will not know "testprjxxx.cpp". Only reloading of the project will help you.