/////////////////////////////1/////////////////////////
char route[100]; 
GetModuleFileName(NULL,route,sizeof(route));
CString PathName(route);
PathName = PathName.Left(PathName.ReverseFind('\\') + 1);/////////////////////////////2/////////////////////////
char route[100]; 
GetModuleFileName(NULL,route,sizeof(route));
string PathName(route);
PathName = PathName.substr(PathName.rfind('\\')+1)
这里准备获取当前的目录,第一个可以正常工作,第二个不可以,想知道这里CString和string有什么区别呢CStringstringMFC