vc odbc 利用delete删除记录时出现异常提示
if((!m_pMySet->IsBOF()))
m_pMySet->MoveFirst();
while(!(m_pMySet->IsEOF()))
{
m_pMySet->Delete();
if(!m_pMySet->IsBOF())
m_pMySet->MoveFirst();
m_pMySet->Requery();
if(m_pMySet->IsEOF())
break;
}
代码运行到循环delete处时出现异常!!
CATCH_ALL(e)
{
lResult = AfxGetThread()->ProcessWndProcException(e, &pThreadState->m_lastSentMsg);
TRACE1("Warning: Uncaught exception in WindowProc (returning %ld).\n",
lResult);
DELETE_EXCEPTION(e);
}
麻烦各位大侠有时间看下啊!1急用!!或有什么代替代码没??