Visual c++ cannot find "resource.h"

When ever I compile my project it cannot not find the "resource.h"

I have directx sdk and windows sdk include files and lib files already included but why can't it find "resource.h"

I'm trying to compile a sample from directx sdk
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.
Topic archived. No new replies allowed.