16,472
社区成员
发帖
与我相关
我的任务
分享
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;
}