string GetNameFromFilePath(string filePath) { //add by lubin char *pszFileName = strrchr( (char *)filePath.c_str(), '//' ); if(pszFileName ) { pszFileName += 1; //搞定,pszFileName就是经果了 string sFileName(pszFileName); return sFileName; } //Not a file paht name return ""; }