在Win32控制台程序中使用CString 进入Project->Settings->General 下,在下拉框中选“Use MFC in a Static Library”(使用MFC做为静态链接库); 然后添加头文件#include <afxwin.h>,并且要放在其它头文件前。 否则,会有#error : WINDOWS.H already included. MFC apps must not #include <windows.h>的错误提示。 Coder,on the way