文件读写路径问题

extern CWinApp theApp;
char szAppName[MAX_PATH];
:: GetModuleFileName(theApp.m_hinstance, szAppName, MAX_PATH);
CString strAppFullName;
strAppFullName.Format(“%s”, szAppName);
CString strTempPath = _T(“”);
strTempPath = strAppFullName.Left(strAppFullName.ReverseFind(‘//’)+1)+_T(“Temp”);
------------------------------------------------------------------------------------
http://www.xuebuyuan.com/1791829.html

posted @ 2019-11-20 21:37  He_LiangLiang  阅读(183)  评论(0编辑  收藏  举报