例: void GetFilePath() { CString strFile; char szFileName[MAX_PATH]; CString strExeName; strExeName = AfxGetApp()->m_pszExeName; //得到程序名称 strExeName.MakeUpper(); //全部转化为大写 strExeName += ".EXE&#