program throws assert after deleting a resource
after i added some editbox in my dialog and did a few compiles, i decided to remove some of the editboxes and change my GUI. but all of a sudden the program throws assertions errors after compilation
checking the call stack, it traces up to this
sorry i am new to programmingCode: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); <THIS IS THE PLACE WHERE IT ASSERTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!> AfxThrowNotSupportedException(); } m_hWndLastControl = hWndCtrl; m_bEditLastControl = FALSE; // not an edit item by default ASSERT(hWndCtrl != NULL); // never return NULL handle return hWndCtrl; }
using
mfc style
winxp
vc6.0++