problem: the $(WindowsSdkDir) macro in VS2010 remains V7.0a
现在是当你安装了sdk7.1时,而 windowssdkdir宏依然是v7.0a,怎么办呢? 当然将新的目录包含进去不久好了吗?
这样当然可以,但是项目往往是集体在做,大家的安装目录不一定在同一个地方,潜在的会造成一定的问题。
如下就是一个更好的解决办法(针对您安装windowssdk 7.1版本哦,否则就不用看了, 当然,它还适用于visual studio2008哦)
如下是引用,可以直接看1,2,3,4,5,6步骤的。
If you have a version of Visual Studio 2010 installed (including Express version that I use) with Windows 7.1 SDK, you can actually set in the Solution Explorer of one of your opened solution which platform toolset you want to use. Once you've selected "Windows SDK 7.1", the macro $(WindowsSdkDir) will be updated.
For more information, read the "Samples Reference" of Windows SDK (you should see the shortcut in Programs> Microsoft Windows SD