#include <string> #include <atlstr.h> int main() { CString strCString = "iloveyou"; std::string strString = CT2A(strCString); return 0; }