VC6.0 最新的 SDK platform sdk xp-sp2 官方下载地址
20:19:09 2010-09-03
可见微软已经不再对 VC6 支持了,最新的 SDK 已经不能在 VC6 上使用。但是还是可以找到支持 VC6 的最后两个版本:
For Server2003 3790.0 RTM: Size (bytes): 342,000,000 Last Updated: February 2003
For XPSP2 2600.2180 RTM: Size (bytes): 266,000,000 Last Updated: August 2004
它们的下载地址是:
我的系统是win2000+sp4简体中文版。使用的编程软件是VC6+SP6,安装了微软的platform sdk xp-sp2。
最近在编写一个软件时用到了winuser.h中的数据类型INPUT,编译时报错不能识别类型INPUT,查看winuser.h文件发现这个数据结构包含在宏定义#if (_WIN32_WINNT > 0x0400)中。所以关键是在正确的位置添加定义#define _WIN32_WINNT 0x0500 。
我的软件使用了MFC,所以在头文件StdAfx.h中按下面的方法添加一个宏定义解决了这个问题:
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
/****************************************************************************
* support new platform ( zou xinyu)
***************************************************************************/
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define _WIN32_WINNT 0x0500 // so the code would compile
#define WINVER 0x0500 // 如果上面的语句不够,可以加上这两句
#define _WIN32_IE 0x0600
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
另外根据微软的说法,VC6支持的最后一个SDK是windows2003 february版本。但我从网上下载后解压第一个安装包就报错,我反复下载了多次都是这样。我不知道是什么原因。幸运的是在网上找到了windowsxp sp2版本。
在这里感谢网友发现的下载地址:
Platform SDK XP-SP2:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.1.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.2.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.3.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.4.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.5.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.6.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.7.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.8.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.9.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.10.cab
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/Extract.exe
http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.bat
Platform SDK February 2003:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
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
readme:
XPSP2 PSDK Full Download with Local Install
Use the full download to copy the entire Windows XP SP2 SDK to a secure computer, then selectively install individual SDKs locally or to other computers.
Click the links on the right. The File Download dialog box is displayed.
将所有压缩包.cab文件保存到一个目录下(如c:/psdktemp),该目录至少要有266 MB的空间。
Click each PSDK-FULL .cab file to save it. Save all .cab files to a temporary directory with at least 266 MB free space (for example, c:/psdktemp).
下载BAT文件(PSDK-FULL.bat)和Extract.exe文件。注意:这两个文件也要和压缩包在同一目录下。
Click BAT File for Extraction and save the batch file to the same directory.
在命令行模式进入前面建立的临时的目录,如:cd c:/psdktemp
Go to the temporary directory using a command prompt. For example:
cd c:/psdktemp
执行BAT文件(PSDK-FULL.bat)解压整个映像。注意:安装sdk的磁盘空间至少要有1.4 GB的剩余空间。
Run Psdk-full.bat to extract the full image from the .cab files. Specify an install directory with at least 1.4 GB free space. For example:
执行BAT文件(PSDK-FULL.bat)示例:
c:/psdktemp> psdk-full c:/psdk
这个过程可能需要几分钟的时间。
This can take several minutes to complete.
运行解压缩后所在文件夹的Setup.exe文件安装Platform SDK。
Run Setup.exe to install the Platform SDK using the SDK Update interface.
Troubleshooting Full Downloads
During the download and installation process, if you should encounter a corrupted CAB file, simply download that CAB file once again. This is a problem that most likely occurred during the data transfer.
Size (bytes): 266,000,000
Last Updated: August 2004
Build:
PSDK-Full.1.cab
PSDK-Full.2.cab
PSDK-Full.3.cab
PSDK-Full.4.cab
PSDK-Full.5.cab
PSDK-Full.6.cab
PSDK-Full.7.cab
PSDK-Full.8.cab
PSDK-Full.9.cab
PSDK-Full.10.cab
BAT File for Extraction
Extraction Utility File
========================
Windows Driver Developer Kit 2003 WIN DDK 3790.1830 下载 Download 地址
http://download.microsoft.com/download/9/0/f/90f019ac-8243-48d3-91cf-81fc4093ecfd/1830_usa_ddk.iso