遇到调试错误:Expression: _pFirstBlock==pHead。查阅了好久不知道是什么原因。最后发现是工程设置问题。现已经解决了。 ----------》debug版下:属性--配置属性--C/C++--代码生成--运行库: Multi-threaded Debug DLL (/MDd) 1>e:\visual studio\vc\atlmfc\include\afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] ----------》工程->属性- >配置属性->c++->命令行 结尾加上 /D "_AFXDLL"