)。安装结束后会在安装的目的文件夹里产生include和lib文件夹,到这里就行了。
3在vc6.0中关联psdk;
在vc6.0 菜单Tools\Options\Directoires include files 和 Library files 下添加PSDK中include 和 Lib
ok;
SDK简介
SDK is short for Software Development Kit , which provide development kit for engineer to develop some specific softvare;
refering to SDK, we must make the DLL and API clear;
DLL is the Dynamic link library, DLL is a executing file,but it can't execut independently ,when we executing a EXE file,the exe
file will dynamically link the DLL file,
API is supplyed by system ,it can be called by application, and DLL fill include lots of API;
to using some API,we must use .lib and .h files,in which the API function is declared or tell the compiler where it can find the
API in a DLL file,
so the .lib file is used when compiling ,whil the DLL file is linked when executing;
http://blog.csdn.net/luozhan/article/details/3325848
http://www.haogongju.net/art/299606
在编译一个获取机器MAC地址的程序时报错,需要iphlpapi.h头文件,Google之后明白需要安装支持VC6的SDK,
最新的支持Visual C++ 6.0的SDK版本是2003年2月版,下载地址是http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm。花了一天时间,好不容易把这15个文件都下载下来了,但是解压缩的时候总是出问题,于是又Google了半天。找到了这么个直接用迅雷下载的链接:
http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=E15438AC-60BE-41BD-AA14-7F1E0F19CA0D&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f9%2f7%2fa%2f97a5ac16-69ae-4672-b93e-40d66d77b278%2f5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img
于是很快用迅雷下载下来了,解压缩之后安装(如果不能直接解压缩的话,就把后缀名给为ISO在解压)。
安装之后,再编译程序可是依旧有那个错误。于是,再去Google,明白原因是SDK没有加入到VC6中,要把SDK中的库文件添加到VC6的库文件目录中。不明白如何添加,于是再去搜索,终于解决问题。
可以点击看大图。其中红圈圈住的位置填的就是SDK安装的目录下面Include文件夹的目录就可以了。
参考文献:
【1】http://topic.csdn.net/t/20060617/21/4827728.html
【2】http://topic.csdn.net/t/20060728/08/4910489.html
【3】http://news.devx.com/showthread.php?t=100230
【4】http://news.devx.com/attachment.php?s=4bbc697dafd7ea3d7b4e2841ebe34f03&attachmentid=151&d=1092740344