Your version of the Windows SDK is earlier than 6.0 Try setting the 'WINVER' and '_WIN32_WINNT' defi

来源:互联网 发布:如何通过淘宝试用 编辑:程序博客网 时间:2024/05/02 00:03

在XP系统中使用VS2008编写MFC程序时,会出现这种问题,解决方法如下:

//在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


0 0
原创粉丝点击