| 
 | 
 
我新建了一个CRecordset类,然后,在Dlg类中加入一个该CRecordset类的成员变量,加入CRecordset.h头文件,然后,我在对话框中加入了几CEdit类,成员变量和m_pSet中的成员关联起来,我发现在运行的时候出错了,错误好象是什么dbview的,对话框都没出来. 
 
语句停在了 
void AFXAPI AfxAssertValidObject(const CObject* pOb, 
        LPCSTR lpszFileName, int nLine) 
{ 
        if (pOb == NULL) 
        { 
                TRACE0("ASSERT_VALID fails with NULL pointer.\n"); 
                if (AfxAssertFailedLine(lpszFileName, nLine)) 
                        AfxDebugBreak(); 
                return;     // quick escape 
        } 
        if (!AfxIsValidAddress(pOb, sizeof(CObject))) 
        { 
                TRACE0("ASSERT_VALID fails with illegal pointer.\n"); 
停留位置                if (AfxAssertFailedLine(lpszFileName, nLine)) 
                        AfxDebugBreak(); 
                return;     // quick escape 
        } 
 
是不是这样加有问题,知道的人说下 |   
 
 
 
 |