vc6+sp6,win2000
编译时报告"undeclared identifier"

解决方案 »

  1.   

    安装后在vc路径中包含sdk的路径
      

  2.   

    project settings-->C/C++ tab, preprocessor definitions里加上: WINVER=0X500
      

  3.   

    To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0400 or later. For more information, see Using the SDK Headers.Visual C++ 6.0:  To specify compiler options, go to the Projects menu and click Settings, then select the C/C++ tab.Windows 2000 _WIN32_WINNT>=0x0500
      

  4.   

    define _WIN32_WINNT as 0x0400无须sdk因为是kernel32.lib的且有win98时就有了