It can be seen that Microsoft no longer supports vc6, and the latest SDK cannot be used on vc6. However, you can find the last two versions that support 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 They are: My system is a Simplified Chinese version of Win2000 + SP4. The programming software used is vc6 + SP6, installed with Microsoft's platform SDK xp-sp2. Recently, winuser was used to write a software program. the data type input in H. If an error is reported during compilation, the type input cannot be identified. View winuser. h file found that this data structure is included in macro definition # If (_ win32_winnt> 0x0400. So the key is to add the definition # DEFINE _ win32_winnt 0x0500 in the correct position. My software uses MFC, So adding a macro definition in the header file stdafx. h solves this problem: # 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 wocould compile # Define winver 0x0500 // if the preceding statement is not enough, you can add these two statements. # 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 In addition, according to Microsoft, the last SDK supported by vc6 is Windows2003 February. However, if I decompress the first installation package after downloading it from the Internet, an error is returned. This is the case when I download the package multiple times. I don't know why. Fortunately, Windows XP SP2 was found online. Here, I would like to thank the netizens for discovering: 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 |