I remember I had exactly the same problem but can't remember what was the problem rely...
I think it was something with precompiled header because it includes resource.h...
try to set your precompiled header to create ( /Yc ) compiler option ... then when u compile the project from strach set that option back to ( /Yu ) "use".
not shore exatly but I think that was a problem :/
OH, also make shore resource.h exist in your build directory of the project!
Normally resource.h is where you write your long, long long list of #define statements for both your resource files and any files that need the IDs for the resources. It's just where you put #define A_REASONABLE_NAME 1001 and the likes to give numbers names for the resource files.