CString GetAppPath() { static CString sAppPath=""; if(sAppPath.GetLength()<4) { TCHAR exeFullPath[MAX_PATH]; // MAX_PATH在API中定义 GetModuleFileName(NULL,exeFullPath,MAX_PATH); for(int i=strlen(exeFullPath);i>0;i--) { if(exeFullPath[i]=='\') { exeFullPath[i]='