文件读写路径问题
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