void CMyDlg::AnalysisBuildLog(CString strLog)
{
CAnalysisBuildLog abl(strLog);
abl.Do();
Log(abl.m_strResult);
if (abl.m_bError)
{
// 发送错误报告
Log(TEXT("***************************编译失败 ") + strLog);
SendResultMail();
exit(1);
}
}
void CMyDlg::SendResultMail()
{
CString strCmd;
strCmd.Format(TEXT("%s,%s"), m_strConfigDir, m_strLogTime);
ShellExecute(NULL, TEXT("open"), TEXT(""), strCmd, NULL, NULL);
}
test code
最新推荐文章于 2023-06-14 14:50:28 发布