title: WindowsSdkDir is not set correctly in Visual Studio 2008?
body: <p>I'm attempting to build some C++ code that requires the Windows 7.0 SDK header files and libraries. My VC++ Directories is set to:</p>
  
  <pre><code>$(VCInstallDir)include
  $(VCInstallDir)atlmfc\include
  $(WindowsSdkDir)\include
  $(WindowsSdkDir)\common\include
  $(FrameworkSDKDir)include
  </code></pre>
  
  <p>My <code>$(WindowsSdkDir)</code> variable <em>should</em> be set to <code>C:\Program Files\Microsoft SDKs\Windows\v7.0\</code> -- I've used the SDK's "Visual Studio Registration" configuration tool to set it, and it looks correct in the registry. I've checked under <code>HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows</code> (and the same in <code>Wow6432Node</code>.</p>
  
  <p>Despite this, Visual C++ is still picking up header files from <code>C:\Program Files\Microsoft SDKs\Windows\v6.0A\</code></p>
  
  <p>What's wrong, and how do I fix it?</p>