>
TCHAR szPathMAX_PATHGetModuleFileNameNULLreversefind,szPathreversefind,MAX_PATHCString strPath = szPathint index = strPathReverseFind_T #39#39strPath = strPathLeftindex + 1reversefind你。
CString File_nameCFileFind fileBOOL nContinuenContinue = fileFindFilePathif!nContinuereturnwhilenContinue nContinue = fileFindNextFileiffileIsDotscontinueelse iffileIsDirectory CString Cpathint Index = PathReverseFind#39#39Cpath = Path。
1如果是MFCreversefind的话reversefind,可以用CString 类的方法ReverseFind,它返回的索引就是位置2通过STL的string 的 rfind方法3也可以自己写int ReverseFind char* p, char cFind char* pp = p + strlenpint nIndex = strlenpwhile 1 if ppnIndex == c return strlen。
CString csDir,csFilecsDir=quotCprogram filesM11txtquotcsFile=csDirRightcsDirGetLengthcsDirReverseFind#39#391AfxMessageBoxcsFilestring。
相关标签 :
微信医疗(登记+咨询+回访)预约管理系统
云约CRM微信小程序APP系统定制开发
云约CRM体检自定义出号预约管理系统
云约CRM云诊所系统,云门诊,医疗预约音视频在线问诊预约系统
云约CRM新版美容微信预约系统门店版_门店预约管理系统
云约CRM最新ThinkPHP6通用行业的预约小程序(诊所挂号)系统联系电话:18300931024
在线QQ客服:616139763
官方微信:18300931024
官方邮箱: 616139763@qq.com