请教Try_catch问题!
谢谢!
如下所示:
try
{
m_pUserTab->Delete();
AfxMessageBox("删除该用户成功!");
}
catch(CDBException e)
{
TCHAR szCause[255];
CString strFormatted;
e.GetErrorMessage(szCause, 255);
strFormatted = _T(" this error: ");
strFormatted += szCause;
AfxMessageBox(strFormatted);
e.Delete();
}
请问如果在m_pUserTab->Delete();发生例外,程序是直接执行catch部分还是执行了
AfxMessageBox("删除该用户成功!");再执行catch部分
谢谢!