//获取程序根目录方法
CString GetAppPath()
{
CString strPath;
char cCurrentFilePath[255];
int nTemp;
GetModuleFileName(NULL, cCurrentFilePath, 255);
strPath = cCurrentFilePath;
nTemp = strPath.ReverseFind('\\');
strPath = strPath.Left(nTemp+1);
return strPath;
}