Posted on 2012-08-12 14:52
小让 阅读(462)
评论(0) 编辑 收藏 引用
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);
}