文件读写路径问题

瘦欲@ 提交于 2019-12-05 03:07:50

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!