在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