test code2

Posted on 2012-08-12 14:52 小让 阅读(434) 评论(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);
}

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


posts - 4, comments - 0, trackbacks - 0, articles - 0

Copyright © 小让