m_pRecordset->MoveNext();记录集指针不移动了
while(m_pRecordset->adoEOF==0)
{
a_DepId.Add((LPCTSTR)(_bstr_t)m_pRecordset->GetCollect("DepID"));
a_DepName.Add((LPCTSTR)(_bstr_t)m_pRecordset->GetCollect("DepName"));
a_UpperId.Add((LPCTSTR)(_bstr_t)m_pRecordset->GetCollect("UpperID"));
m_pRecordset->MoveNext();
}
上面这段代码中m_pRecordset是从ORACLE加载的Departments表所有记录集,m_pRecordset->MoveNext();执行之后还是指向原来的记录,并没有到下一条记录,都成死循环了,请大家帮帮忙,告诉我怎么解决把
------解决方案--------------------
while(m_pRecordset->adoEOF==0)
怎么是这个条件?
不是
while(! m_pRecordset->adoEOF)
?