vs2008error C2504: “CWinAppEx”: 未定义基类 CWinAppEx编译出问题的修改方法: 1.直接把CWinAppEx替换为CWinApp。注释掉#include <afxcontrolbars.h> 3.安装VS2008 SP1补丁