我想在catch(...){} 里面捕捉 错误的详细信息。如何修改catch(...){}
估计是将...换成其他什么的吗?
估计是将...换成其他什么的吗?
解决方案 »
- CFileDialog 实时(内部代码)修改文件类型
- VC中无法连接到SQL数据库
- 请问InitApplication的作用
- CDC *ImageDC 和 HDC hImageDC 都是同一个设备上下文的指针吧,两者有什么分别
- 我自己建了一个C/C++/MFC的QQ群希望能有高手的加入哦!QQ群的号码是:7991387
- 怎么强制性杀掉指定进程?
- 哪位老兄有bmp转jpg的源码,或者知道哪儿有,请告知,谢谢!
- 100分问:我如何实现象网上邻居中的右键的影射网络驱动器的功能,假设我网络路径已知.分不够可以加
- 有内存泄漏怎么办????CTypedPtrList<CObList,CTPPipeLine*> *m_pPipeLineList;
- 姜饼人算法中的固定点
- vc中嵌入的一段相乘语句,错在那里,高低位相乘后如何做才能得到最后的结果?
- 提个问题?CImagelist的create函数,具体内容见下!
{
// Execute some code that might throw an exception.
}
catch( CException* e )
{
// Handle the exception here.
// "e" contains information about the exception.
e->Delete();
}
有 不使用mfc的吗?
{
// Execute some code that might throw an exception.
}
catch( exception& e )
{
// Handle the exception here.
// "e" contains information about the exception.
cout << "exception catched:" << e.what() << endl;
}
{
if (sError != sErrorMsg)
strncpy(sError,sErrorMsg,128);
}
catch(_com_error &e)
{
PrintComErrorString(sError,e);
}
catch(...)
{
strcpy(sError,"未知错误!");
}
{
if(n2==0)
throw "there is an error!"
}
{
if(n2==0)
throw "there is an error!"
else
return n1*1.0/n2;}
void test()
{
float f1;
try
{
f1=mydiv(2,9)
}
catch( CString e)
{
AfxMessageBox(e);
}
catch(...)
{
AfxMessageBox("an uncatch error!");
}
}