Cstring转化为String CString FileName = dlg.GetPathName(); //获取文件路径名 如D:picabc.bmp using std::string; string s = (CStringA)FileName;