Windows 7 SDK安装在错误的目录中? [英] Windows 7 SDK installed in wrong Directory?

查看:124
本文介绍了Windows 7 SDK安装在错误的目录中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我在Windows 7上使用VS 2012,我认为它已经包含Windows sdks 7和8 ..我不确定这是否正确。我注意到我没有应该与windows 7 sdk一起使用的samples文件夹,所以我最终管理(一个很长的
痛苦的过程)再次安装它。我刚刚意识到新的windows 7 sdk安装在x64目录中,而不是我的visual studio组件所在的x86目录。现在,当我尝试打开其中一个Windows 7 sdk示例时,
它告诉我vs需要对文件进行功能更改。这是因为它安装在错误的目录中还是因为样本是在早期版本的vs中编写的?我真的希望不再花3个小时重新安装它,因为我已经尝试
安装它已经两天了,现在想继续编程!

Hello. I am using VS 2012 on windows 7 which I think is meant to include windows sdks 7 and 8 already.. I'm not sure if that is correct. I noticed that I didn't have the samples folder that should be with windows 7 sdk so I eventually managed (a long and painful process) to install it again. I have just realised that the new windows 7 sdk installed in the x64 directory rather than the x86 directory where the rest of my visual studio components are located. Now when I try and open one of the windows 7 sdk samples, it tells me that vs needs to make functional changes to the files. Is this because its installed in the wrong directory or becuase the sample was written in an early version of vs? I really hope not to spend another 3 hours re installing it as iv been trying to install it for two days already and id like to get on with some programming now!

抱歉如果我的描述不清楚,我也是非常新的。我真的很感激任何人都可以提供帮助。谢谢。

Sorry if my description is unclearm, I am very new too all this. I would really appreciate any help anyone can give. Thank you.

推荐答案

VS 2012 Express for Desktop,VS 2012 Pro或更高版本已包含完整的Windows 8.0 SDK。您可以使用Windows 8.0 SDK来定位Windows 8,Windows 7,Windows Vista SP2或Server等效项。你需要Windows $ x SDK才能获得
no t。您唯一需要做的就是设置
_WIN32_WINNT
预处理器定义正确。它默认为0x0602,即"Windows 8",但如果您正在为Windows 7编写Win32桌面应用程序,则应将其设置为0x0600(Windows Vista)或0x0601(Windows 7)。

VS 2012 Express for Desktop, VS 2012 Pro or higher already includes the full Windows 8.0 SDK. You can use the Windows 8.0 SDK to target Windows 8, Windows 7, Windows Vista SP2, or the Server equivalents. You do not need the Windows 7.x SDK for this. The only thing you need to do is set the _WIN32_WINNT preprocessor definition correctly. It defaults to 0x0602 which is "Windows 8", but you should set it to 0x0600 (Windows Vista) or 0x0601 (Windows 7) if you are writing a Win32 desktop application for Windows 7.

您需要较旧的Windows SDK的主要原因是为了定位Windows XP。当您安装添加"v110_xp"的Visual Studio 2012 Update 1时平台工具集,
已包含 Windows 7.1 SDK的相关部分,因此您无需明确安装它。

The primary reason you need an older Windows SDK is in order to target Windows XP. When you install the Visual Studio 2012 Update 1 that adds the "v110_xp" Platform Toolset, it includes the relevant parts of Windows 7.1 SDK already so you don't need to explicitly install it.

http://blogs.msdn.com/b/chuckw/ archive / 2012/11/26 / visual-studio-2012-update-1.aspx

否则安装旧版Windows SDK的唯一原因是工具。请注意,这些较旧的Windows SDK未与VS 2012集成。

Otherwise the only reason to install an older Windows SDK is for tools. Note that these older Windows SDKs do not integrate with VS 2012.


这篇关于Windows 7 SDK安装在错误的目录中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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