CString GetAppPath()
{//获取应用程序根目录
TCHAR modulePath[MAX_PATH];
GetModuleFileName(NULL, modulePath, MAX_PATH);/////////////////NULL参数为获得该exe本身的绝对路径
CString strModulePath(modulePath);
strModulePath = strModulePath.Left(strModulePath.ReverseFind(_T('\\')));//去处文件名,走到该目录下并返回
return strModulePath;
}