windows xp平台SDK哪里下载?

发布于 2024-11-02 14:08:57 字数 146 浏览 8 评论 0 原文

我想使用 VS Express 2005 编译很久以前的代码。 该代码需要windows.h,它不是VS 2005的一部分,我发现我需要安装平台SDK。 但我找不到 Windows XP 的平台 SDK。哪里可以下载这个平台的SDK? 在哪里可以找到 windows.h?

I want to compile a code that I have from long time ago using VS express 2005.
The code needs windows.h which is not part of VS 2005 and I found that I need to install platform SDK.
But I cannot find platform SDK for windows XP. Where can I download this platform SDK?
Where can I find windows.h?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

智商已欠费 2024-11-09 14:08:57

您不需要找到适用于 Windows XP 的 SDK。 Windows SDK 的每个版本都针对最新版本的 Windows 以及多个早期版本。您应该始终安装最新版本的 SDK,除非您的目标操作系统版本非常旧。目前,Windows XP 还不太重要。

您需要做的就是确保在编译项目时设置适当的目标版本。要以 Windows XP 为目标,您只需将 WINVER 定义为版本 0x0501,如下所示:

#define WINVER 0x0501

您可以使用标头 此处

您可以在此处下载最新的 SDK:http://msdn.microsoft.com/en-我们/Windows/bb980924

You don't need to find the SDK for Windows XP. Each release of the Windows SDK targets the latest version of Windows, as well as several previous versions. You should always install the latest version of the SDK unless you are targeting an extremely old version of the OS. At this point, Windows XP doesn't quite count (yet).

All you need to do is make sure that you set the appropriate target version when compiling your project. To target Windows XP, you should simply define WINVER to version 0x0501, like so:

#define WINVER 0x0501

You can find more information about targeting specific versions of Windows using the headers here.

And you can download the latest SDK here: http://msdn.microsoft.com/en-us/windows/bb980924

哽咽笑 2024-11-09 14:08:57

以防万一有人确实需要旧的 SDK,这里是 2003 年 2 月的一个:

http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.1.cab
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.2.cab 
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.3.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.4.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.5.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.6.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.7.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.8.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.9.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.10.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.11.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.12.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.13.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bat    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/extract.exe

Just in case someone actually needs an old SDK, here's one from Feb 2003:

http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.1.cab
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.2.cab 
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.3.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.4.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.5.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.6.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.7.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.8.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.9.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.10.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.11.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.12.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.13.cab    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bat    
http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/extract.exe
拧巴小姐 2024-11-09 14:08:57

Visual Studio Express - 所有版本(包括 2005) - 安装必要的平台 SDK 文件来构建 Windows 目标。

如果项目向导创建的项目(#include )无法工作,则说明您的安装已损坏。

Visual Studio Express - all versions including 2005 - install the necessary platform SDK files to build windows targets.

You have somehow damaged the install if projects made by the project wizard (that #include <windows.h>) do not work.

怀中猫帐中妖 2024-11-09 14:08:57

如果您使用的是 C++,您始终可以使用以下代码行来定位 Windows XP - Windows 10。

/**
 * Copyright (c) 2014 - 2016, Dark Edge Studios, All Rights Reserved.
 *
 * Authors
 * - Daniel I. Dorn <[email protected]>
 *
 * The following code example is under the terms of the ZLIB / LIB PNG
 * License please only use as license permits.
 */

 #ifndef YourIncludeGaurds
 #define YourIncludeGaurds

 /* Check if Windows */
 #if defined(_WIN32) || _WIN64

     /* sdkddk Header File */
     #include <sdkddkver.h>

     /**
      * Windows XP
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x05010000

     #endif /* Windows XP */

     /**
      * Windows Vista
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06000000

     #endif /* Windows Vista */

     /**
      * Windows 7
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06010000

     #endif /* Windows 7 */

     /**
      * Windows 8
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06020000

     #endif /* Windows 8 */

     /**
      * Windows 8.1
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06030000

     #endif /* Windows 8.1 */

     /**
      * Windows 10
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x0A000000

     #endif /* Windows 10 */

 #endif /* Windows */

 #endif /* YourIncludeGaurds */

希望这有助于解释一些事情(=

If you are using c++ you can always target windows xp - windows 10 using the following lines of code.

/**
 * Copyright (c) 2014 - 2016, Dark Edge Studios, All Rights Reserved.
 *
 * Authors
 * - Daniel I. Dorn <[email protected]>
 *
 * The following code example is under the terms of the ZLIB / LIB PNG
 * License please only use as license permits.
 */

 #ifndef YourIncludeGaurds
 #define YourIncludeGaurds

 /* Check if Windows */
 #if defined(_WIN32) || _WIN64

     /* sdkddk Header File */
     #include <sdkddkver.h>

     /**
      * Windows XP
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x05010000

     #endif /* Windows XP */

     /**
      * Windows Vista
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06000000

     #endif /* Windows Vista */

     /**
      * Windows 7
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06010000

     #endif /* Windows 7 */

     /**
      * Windows 8
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06020000

     #endif /* Windows 8 */

     /**
      * Windows 8.1
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x06030000

     #endif /* Windows 8.1 */

     /**
      * Windows 10
      */
     #if defined(_WIN32_WINNT) && NTDDI_VERSION == 0x0A000000

     #endif /* Windows 10 */

 #endif /* Windows */

 #endif /* YourIncludeGaurds */

hope this helps explain some things (=

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文