16,550
社区成员
发帖
与我相关
我的任务
分享void CYSChatView::OnDestroy()
{
CView::OnDestroy();
if(m_pArchiveOut!=NULL)
{
CMsg msg;
msg.picture = -3;
msg.from = user_name;
msg.m_bClose = TRUE;
msg.ip = ip;
TRY
{
msg.Serialize (*m_pArchiveOut);//写入存档
m_pArchiveOut->Flush ();
}
CATCH(CFileException,e)
{
m_bAutoChat = FALSE;
m_pArchiveOut->Abort ();
delete m_pArchiveOut;
m_pArchiveOut = NULL;
CString strTemp;
if(strTemp.LoadString (IDS_SERVERRESET))
{}
}END_CATCH
}
}