我一直用的是VC6.0,但是一些新的API函数,无法使用,只有在.net 2003下才能编译通过,
怎样更新我的SDK呢?
 请各位教我。
 我在微软网站下了,新的PlatForm SDK, 但是安装的过程中出现问题,不知道怎么回事。

解决方案 »

  1.   

    目前最新的SDK似乎不支持VC6了吧
      

  2.   

    WINVER版本宏是否设置的太低了?
      

  3.   

    编译<<windows核心编程>>中的程序时会:
    Compiling...
    TimedMsgBox.cpp
    You are not using the latest Platform SDK header/library 
    files. This may prevent the project from building correctly.
    f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
    f:\iso\windowskernelprograming\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
    f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(65) : error C2065: 'CreateTimerQueueTimer' : undeclared identifier
    f:\iso\windowskernelprograming\11-timedmsgbox\timedmsgbox.cpp(73) : error C2065: 'DeleteTimerQueueTimer' : undeclared identifier
    Error executing cl.exe.
    Creating browse info file...11 TimedMsgBox.exe - 4 error(s), 0 warning(s)头文件中做了如下的设置,
    #define _WIN32_WINNT 0x0500
    //#define WINVER       0x0500
    如何解决这个问题呢?
    难道只能用2003或更高才行吗?
      

  4.   

    最新的SDK是不是Windows® Server 2003 SP1 Platform SDK这个啊我看了需求好象是 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我用win2k+vs6(sp6)不知道能不能装上用啊
      

  5.   

    //#define WINVER       0x0500???
      

  6.   

    //#define WINVER       0x0500???楼上的,这是书中原来就是那样写的不知道为什么啊我用win2k+vs6(sp6)不知道能不能装上用啊?我试了装不了,有错误,
      

  7.   

    最新的不支持vc6。最有一个支持vc6的版本是februlary 2003 edition.
    http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm