CString cstr1 = "The CString";
string str;
CString cstr2;
string str2 = "The string";
str = cstr1.GetBuffer(0); //CString To string
cstr2 = str2.c_str(); //string To CString
zz from http://beetle082.blog.163.com/blog/static/70026724200874102311273/