WindowsSdkDir 未在 Visual Studio 2008 中正确设置? [英] WindowsSdkDir is not set correctly in Visual Studio 2008?

查看:39
本文介绍了WindowsSdkDir 未在 Visual Studio 2008 中正确设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一些需要 Windows 7.0 SDK 头文件和库的 C++ 代码.我的 VC++ 目录设置为:

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:

$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(WindowsSdkDir)\include
$(WindowsSdkDir)\common\include
$(FrameworkSDKDir)include

我的$(WindowsSdkDir)变量应该设置为C:\Program Files\Microsoft SDKs\Windows\v7.0\ -- 我使用了 SDK 的Visual Studio 注册"配置工具来设置它,它在注册表中看起来是正确的.我已经在 HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows 下检查过(在 Wow6432Node 中也是如此.

My $(WindowsSdkDir) variable should be set to C:\Program Files\Microsoft SDKs\Windows\v7.0\ -- 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 HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows (and the same in Wow6432Node.

尽管如此,Visual C++ 仍在从 C:\Program Files\Microsoft SDKs\Windows\v6.0A\

Despite this, Visual C++ is still picking up header files from C:\Program Files\Microsoft SDKs\Windows\v6.0A\

出了什么问题,我该如何解决?

What's wrong, and how do I fix it?

推荐答案

啊.找到这篇博文:http://blogs.msdn.com/windowssdk/archive/2008/06/30/winsdk-bug-notification-sdk-config-tool-appears-to-work-but-失败.aspx

本质上,配置工具只更新HKEY_LOCAL_MACHINE设置;Visual Studio 优先使用 HKEY_CURRENT_USER 设置.

Essentially, the configuration tool only updates the HKEY_LOCAL_MACHINE settings; Visual Studio uses the HKEY_CURRENT_USER settings in preference.

这篇关于WindowsSdkDir 未在 Visual Studio 2008 中正确设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆