I have encountered a problem in my first serious forrays into windows apps and directx. When compiling code copied from a book or the web into VC++ 2010 Express I got a string of objbase.h errors. I tracked down a quick fix of going to the VC direcories and manually adding the Windows SDK at the top which fixed the problem, but I feel it is not the most efficient way of solving this. Is there a better way of ensuring the SDK is linked to the project?