1.在stdafx.h中所有的头文件之前加入如下头文件:
#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
#include <afxcmn.h>
2. 在Project->Setting->General 中选Use MFC in a Shared DLL或者 Use MFC in static Library
,把project->Setting->C/C++ 中的Use runing-time library 由Single-Threaded改为相应的 Multithreaded ,后面的不改好像也能过。