VC Debug Assertion Failed File:dlgdata.cpp Line 43
来源:互联网 发布:big mac index 编辑:程序博客网 时间:2024/05/21 22:53
程序编译通过,但运行的时候没有弹出程序界面,直接蹦出一个断言错误的对话框提示
"Debug Assertion Failed File:dlgdata.cpp Line 43"
问题原因:没有找到相应控件类型
一般有三种情况:一是控件ID不存在,二是控件未创建,三是控件的类型不对.
例如:
- void CTransDlgBar::DoDataExchange(CDataExchange* pDX)
- {
- // CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CTransDlgBar)
- DDX_Control(pDX, IDC_EDIT_T17, m_edtRequest);
- //此控件已经不存在,此句人工删除 DDX_Control(pDX, IDC_EDIT3, m_edtMyZero);
- //此控件已经不存在,词句人工删除 DDX_Control(pDX, IDC_EDIT1, m_edtMxZero);
- DDX_Control(pDX, IDC_CHECK1, m_Disp2D);
- DDX_Control(pDX, IDC_BTN_TRANS, m_btnTrans);
- DDX_Control(pDX, IDC_EDIT2, m_EdtInBuf);
- DDX_Control(pDX, IDC_COMBO2, m_DeviceName);
- //}}AFX_DATA_MAP
- for(int i=0; i<20; i++)
- {
- m_edtTxd[i] = (CEdit *)GetDlgItem(IDC_EDIT_T1 + i);
- }
- }
- VC Debug Assertion Failed File:dlgdata.cpp Line 43
- debug assertion failed, file:dlgdata.cpp,line"43
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误
- MFC程序出现“Debug Assertion Failed! File:dlgdata.cpp Line: 43 ”错误
- debug assertion failed, file:dlgdata.cpp,line43
- "debug assertion failed, file:dlgdata.cpp,line43"
- VC++ Debug Assertion Failed! 错误(File: winmdi.cpp Line: 141)
- debug assertion failed dlgdata.cpp line40出错
- Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\dlgdata.cpp Line: 42
- Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\dlgdata.cpp Line: 42
- MFC学习笔记之VC++ Debug Assertion Failed! 错误(File: strex.cpp Line: 690)
- 引用 Debug Assertion Failed!File:wingdi.cpp Line:1120
- 引用 Debug Assertion Failed!File:wingdi.cpp Line:1120
- Debug Assertion Failed File:dgbdel.cpp Line 52
- Debug Assertion Failed! File:cmdtarg.cpp Line:52
- Debug Assertion Failed! FILE viewform.cpp , line 69
- debug assertion failed! winocc.cpp line 381
- 掌握的c语言编程
- Linux进程通信(3):信号量
- 个人工作中常用adb命令记录
- bios 和dos 中断例程
- 一步一步学编程之Python(二)
- VC Debug Assertion Failed File:dlgdata.cpp Line 43
- 自己练习做的一些效果图《二》
- SHChangeNotify
- 自己练习做的一些效果图《三》
- 常用设计模式之MVC模式详解
- asp.net验证控件
- typedef与define
- Java环境变量配置
- 数据流程图与数据字典