使用try...catch的一点心得
使用try...catch时,最好在catch的代码段内用::AfxMessageBox(e.Description())输出异常信息,利于调试。
具体代码如下:
try
{
......
}
catch(_com_error &e)
{
::AfxMessageBox(e.Description());
......
}
使用try...catch的一点心得
使用try...catch时,最好在catch的代码段内用::AfxMessageBox(e.Description())输出异常信息,利于调试。
具体代码如下:
try
{
......
}
catch(_com_error &e)
{
::AfxMessageBox(e.Description());
......
}