vc的try,catch,finally 怎么写?可以举个例子吗?
try
{
m_strLogPath = strNewLogPath;
file.WriteString(m_strLogPath);
}
catch(CFileException *e)
{
e->ReportError();
e->Delete();
}
__finally
{
file.Close();
}
为何不对?
try
{
m_strLogPath = strNewLogPath;
file.WriteString(m_strLogPath);
}
catch(CFileException *e)
{
e->ReportError();
e->Delete();
}
__finally
{
file.Close();
}
为何不对?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货