CString csOne ; string str; char* chr; csOne = str.c_str(); str = csOne.GetBuffer(0); chr = str.c_str();