01.//帮助文件,返回exe.hlp
02.CString file = AfxGetApp()->m_pszHelpFilePath;
03.MessageBox(file);
04.
05.//可执行方便全路径
06.GetModuleFileName(NULL, file.GetBufferSetLength(MAX_PATH + 1), MAX_PATH);
07.MessageBox(file);
08.
09.//运行目录路径
10.GetCurrentDirectory(MAX_PATH, file.GetBufferSetLength(MAX_PATH + 1));
11.MessageBox(file);
02.CString file = AfxGetApp()->m_pszHelpFilePath;
03.MessageBox(file);
04.
05.//可执行方便全路径
06.GetModuleFileName(NULL, file.GetBufferSetLength(MAX_PATH + 1), MAX_PATH);
07.MessageBox(file);
08.
09.//运行目录路径
10.GetCurrentDirectory(MAX_PATH, file.GetBufferSetLength(MAX_PATH + 1));
11.MessageBox(file);