各位大虾,我程序编译通过后,一运行就出现这样的错误,----------------------------------------------------------------------------
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.
----------------------------------------------------------------------------上面就是出错提示对话框上的信息,请问各位大虾这到底怎么回事?

解决方案 »

  1.   

    HWND CDataExchange::PrepareCtrl(int nIDC)
    {
    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;
    }是不是添加了成员变量后又在界面上删除了控件
      

  2.   

    43行有个ASSERT的错误,没代码看不出来什么错误
      

  3.   

    多谢 vcmute(横秋) 了,就和他说的一样,也多谢各位大虾的关注!