Visual Studio 2005中的异常处理 [英] Exception handling in Visual Studio 2005
本文介绍了Visual Studio 2005中的异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Visual Studio 2005中使用try catch块时,我们不能:
展开 | 选择 | Wrap | 行号
解决方案
此代码:
尝试{
// [某事]
>
} catch(...){
// [某事]
}
使用Visual Studio.NET 2005编译时没有错误。
您是否在项目属性中启用了异常处理?
在Visual Studio 2005中使用try catch块时,我们不能:
展开 | 选择 | 换行 | 行号
当然可以编译,但是在我的情况下,catch块中的任何内容都不会被执行。
展开 | 选择| Wrap | 行号
When using the try catch block in Visual Studio 2005, we cannot have:
Expand|Select|Wrap|Line Numbers解决方案This code:
try{
//[something]
} catch (...) {
//[something]
}compiles with no errors using Visual Studio.NET 2005.
Have you enabled exception handling in your project properties??
When using the try catch block in Visual Studio 2005, we cannot have:
Expand|Select|Wrap|Line Numbers
Sure it compiles, but whatever is in the catch block doesn''t get executed in my case.
Expand|Select|Wrap|Line Numbers
这篇关于Visual Studio 2005中的异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆