Microsoft Platform SDK 选择及在vc++6.0中的配置

本文介绍了如何在VC++6.0中配置Windows Platform SDK,特别是最后一个支持VC6.0的2003年2月版本,该版本可用于开发多种Windows操作系统平台的应用。文中提到了不同SDK版本的支持情况,以及对于Windows XP SP2和Server 2003 SP1 SDK的限制。同时,提供了配置VC6.0以使用SDK的步骤,包括修改工具路径,确保编译器能找到所需的库和头文件。

Windows Platform SDK Download Sites:

Windows Server 2003 PSDK February 2003 Edition,可以和VC6一起使用、并支持各种目标OS的最后一个版本的SDK。
This edition of the SDK supports development for the following platforms:
Windows Server 2003
Windows Advanced Server, Limited Edition
Windows XP
Windows XP 64-bit Edition
Windows 2000
Windows NT versions 3.51 and 4.0
Windows Millennium Edition
Windows 95 and Windows 9

XPSP2 August 2004 Edition,可以在VC6使用,开发针对XPSP2的特殊功能的程序,可以和上面的一道使用,但请安装在不同目录。
Newly released: The Platform SDK for Windows XP Service Pack 2 support
(includes MDAC 2.8, Tablet 1.7 and Windows Installer 3.0)
The XPSP2 version of the Platform SDK was developed to work either side by
side with the Windows Server 2003 SDK or standalone but will not provide
build environments for:
Windows Server 2003
Windows Advanced Server, Limited Edition
Windows XP
Windows XP 64-bit Edition
Windows 2000
Windows NT versions 3.51 and 4.0
Windows Millennium Edition
Windows 95 and Windows 98
You must install The Microsoft Platform Software Development Kit (SDK) for
Windows Server 2003 for those environments.The SDKs can not be installed in
the same directory for side by side performance.

Windows Server 2003 SP1 Platform SDK Web Install,最新版的SDK,可惜不能和VC6一起协作,不再支持NT4和9X。

This edition of the SDK replaces the previous SDKs for Windows XP SP2 and Windows Server 2003 and can be used to develop applications for those platforms.
Supported Operating Systems: Windows 2000; Windows Server 2003; Windows XP 64-bit; Windows XP Professional Edition ; Windows XP Service Pack 1
This SDK does not support working with Microsoft Visual C/C 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition.

若你使用的是Visual C++ 2005 Express Edition,请参考:Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK

Platform SDK - Install - Home
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/downlevel.htm

打开vc6,菜单tools-options-directories.增加以下路径

executable files
    你的platform安装路径/bin
    你的platform安装路径/bin/winnt
include file
    你的platform安装路径/include
library files
    你的platform安装路径/lib
source files
    可添加也可不添加

配置完之后,可以调整各路径与原有路径的前后次序,因为编译和连接的时候是按照顺序寻找相应的include和lib。为了保证用上最新的,你可以把路径放在原来的配置中vc6自带的sdk路径前面。

上面只是一个配置sdk的方法,至于能否解决你的问题,只有尝试之后才知道了

最后一个支持vc6.0的sdk

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm

资源下载链接为: https://pan.quark.cn/s/c705392404e8 SDK(软件开发工具包)是助力开发者打造特定平台应用程序的工具集合,涵盖程序接口、头文件、库文件及文档资料等。这里讨论的是VC98 SDK,即专为Microsoft Visual C++ 6.0(简称VC++6.0)配备的SDKVC++6.0是微软推出的一款经典C++集成开发环境,广泛应用于Windows平台软件开发,内含强大IDE、编译器、调试器及基础库文件,SDK则进一步补充,提供额外API和工具,让开发者能充分运用Windows操作系统能力。 VC98 SDK中,“Include”目录存放众多头文件,这些头文件定义了API函数、结构体、枚举等编程元素。“windows.h”是核心头文件,涵盖大部分Windows API声明,开发者编写Windows程序常首先包含此文件。其他如“winbase.h”“winuser.h”“winsock2.h”等头文件,分别关联基础系统服务、用户界面、网络编程相关API,借助这些头文件,开发者可直接调用Windows系统功能,完成复杂操作。 “Lib”目录包含库文件,是编译好的二进制代码,用于链接到开发者程序中。VC++6.0中库文件分静态库(.lib)和动态库(.dll),静态库编译时整合进目标程序,动态库运行时加载。像“kernel32.lib”“user32.lib”“gdi32.lib”等常见系统库,提供众多底层操作系统服务,若源代码使用某API函数,需链接对应库文件,才能运行时找到并执行。 使用VC++6.0 SDK开发流程如下:一是创建项目,通过VC++6.0新建项目启动工程,选相应模板;二是设置包含目录和库目录,配置项目属性,让编译器找到头文件和库文件;三是编写代码,引入必要头文件,编写利用Windows API操作代码;四是链接库
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值