close

常會碰到下列錯誤:

fatal error C1189: #error :  Your version of the Windows SDK is earlier than 6.0. Try setting the 'WINVER' and '_WIN32_WINNT' definitions in your project to less than 0x0600.

 

解決方法:

////////////////////////////////////////////////////////////////////////////////////////////////////////////
//在stdafx.h中的最前面添加
////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef WINVER     // Specifies that the minimum required platform is Windows Vista.
#define WINVER 0x0500   // Win2k
#endif

#ifndef _WIN32_WINNT   // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0500  // Win2k
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////////////

arrow
arrow
    全站熱搜

    chunyuan 發表在 痞客邦 留言(0) 人氣()