#include <string> #include <atlstr.h> int main() { CString strCString = "iloveyou"; std::string strString = CT2A(strCString); return 0; }
CString转string,布布扣,bubuko.com
CString转string
原文:http://blog.csdn.net/scnu_jiechao/article/details/38408373