各位大虾,我程序编译通过后,一运行就出现这样的错误,----------------------------------------------------------------------------
Dabug Assertion Failed!Program: D:\VC练习\lhwy\Debug\lhwy.exe
File: dlgdata.cpp
Line: 43For information on how you program can cause assertion failure, see the Viasual C++ documention on asserts.
----------------------------------------------------------------------------上面就是出错提示对话框上的信息,请问各位大虾这到底怎么回事?
Dabug Assertion Failed!Program: D:\VC练习\lhwy\Debug\lhwy.exe
File: dlgdata.cpp
Line: 43For information on how you program can cause assertion failure, see the Viasual C++ documention on asserts.
----------------------------------------------------------------------------上面就是出错提示对话框上的信息,请问各位大虾这到底怎么回事?
{
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
HWND hWndCtrl;
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);
if (hWndCtrl == NULL)
{
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);
ASSERT(FALSE);//<==Line: 43
AfxThrowNotSupportedException();
}
m_hWndLastControl = hWndCtrl;
m_bEditLastControl = FALSE; // not an edit item by default
ASSERT(hWndCtrl != NULL); // never return NULL handle
return hWndCtrl;
}是不是添加了成员变量后又在界面上删除了控件