CString GetExePath(BOOL bIncludeSep){ // 得到当前的文件名   CString strFileName;   GetModuleFileName(AfxGetInstanceHandle(),strFileName.GetBuffer(_MAX_PATH),_MAX_PATH); //返回当前应用程序的全路径
  
   strFileName.ReleaseBuffer();    // 得到当前目录   strFileName=strFileName.Left(strFileName.ReverseFind(_T('\\'))+1); //cs对象要求的字符匹配的最后一个字符的索引,找到字符返回-1    if(bIncludeSep)  //判定是否含有‘\’     return strFileName;   else     return strFileName.Left(strFileName.GetLength()-1);}
:\work\testlog\log.cpp(8) : error C2059: syntax error : 'PCH creation point'
d:\work\testlog\log.cpp(10) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
d:\work\testlog\log.cpp(40) : error C2059: syntax error : 'PCH creation point'
d:\work\testlog\log.cpp(42) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
d:\work\testlog\log.cpp(68) : fatal error C1004: unexpected end of file found