在vs2010中拖了 checkbox控件,为什么吕剧红嫂点着了炉中火不管用,也没有对号

I have a VS 2010 C# .NET 4 project. The issue is that the program is not breaking on 'NullReferenceException' errors during debugging.
The output window will display the following:
A first chance exception of type 'System.NullReferenceException' occurred in myProgram.exe
...but the debugger will just exit out of the function and continue running the rest of the program.
How do I change this behavior so that the debugger will break on these exceptions?
解决方案 Go to Debug -> Exceptions -> Search for NullReferenceException and check the "thrown" checkbox.
本文地址: &
我有一个VS 2010 C#.NET 4项目。该问题是调试过程中程序不上破'的NullReferenceException'错误
输出窗口将显示以下内容:
键入'System.NullReferenceException'的第一次机会异常出现在myProgram.exe
。 ..但调试器将只出口了功能并继续运行该程序的其余部分。
我要如何改变这种行为,以便调试器将这些破?例外
解决方案 进入调试 - >例外 - >搜索的NullReferenceException 并勾选“抛出”复选框。
本文地址: &
扫一扫关注官方微信4675人阅读
void CcmDlg::OnBnClickedButton1()
CString szNameList,szN
szNameList=&&;
for(int i=IDC_CHECK1;i&IDC_CHECK3+1;i++)
CButton *pBtn=static_cast&CButton *&(GetDlgItem(i));
if(pBtn!=NULL)
if(pBtn-&GetCheck()==BST_CHECKED)
pBtn-&GetWindowText(szName);
szNameList=szNameList+szName+(CString)&\r\n&;
MessageBox(szNameList,_T(&人员&));
static_cast
用法:static_cast & type-id & ( expression )
  该运算符把expression转换为type-id类型,但没有运行时类型检查来保证转换的安全性。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:276276次
积分:2981
积分:2981
排名:第8773名
原创:65篇
转载:21篇
评论:52条
(1)(1)(4)(5)(1)(1)(3)(1)(4)(1)(1)(1)(2)(1)(5)(1)(1)(2)(1)(4)(1)(2)(3)(10)(3)(3)(1)(1)(10)(3)(4)(4)}

我要回帖

更多关于 燃气灶点着几秒就灭了 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信