CString CFilenames::ExecutableFilename() { CString complete_path = PathOfExecutable(); int pos = complete_path.ReverseFind('\\'); if (pos > 0) { assert(pos < complete_path.GetLength() - 1); return complete_path.Mid(pos + 1); } Log("ExecutableFilename", complete_path.GetString()); return complete_path; }
CVersionInfo::CVersionInfo() { // Getting the check-sum only once on start-up _openholdem_MD5 = CalculateMD5(PathOfExecutable()); }