crecordset

Custom CRecordset class does not call DoFieldExchange() when useMultiRowFetch is specified

天涯浪子 提交于 2019-12-23 09:42:49
问题 I've implemented a custom CRecordset class, and have code similar to the following: ASSERT(prs->GetRowsetSize() == 25); while (!prs->IsEOF()) { for (int i = 1; i <= prs->GetRowsFetched(); i++) { prs->SetRowsetCursorPosition((WORD)i); // Inspecting data here... } prs->MoveNext(); } prs->Close(); Apparently, when using multi-row fetch, CRecordset does not call my DoFieldExchange override as it does when not using multi-row fetch, and that is by design. And so my data isn't automatically