error C2065: “CString”: 未声明的标识符 在非mfc下 使用CString 会导致上面错误: 解决办法: (1)如果你使用VC.net那么:使用MFC:包含cstringt.h;不使用MFC:包含atlstr.h (2 )或者 #include <afx.h>