How to use bookmarks with ole db
I am having trouble using bookmarks with the Jet Ole DB provider. Whenever i call CRowset::MoveToBookmark i get "Not a valid bookmark" error. This is the code i have in the row accessor for the bookmark...
CBookmark<4> m_Bookmark;
//
// Lot's of other variables here for columns
//
BEGIN_ACCESSOR_MAP(CMyAccessor, 2)
BEGIN_ACCESSOR(0, true)
//
// Lot's of map entries here for columns
//
END_ACCESSOR()
BEGIN_ACCESSOR(1, true)
BOOKMARK_ENTRY(m_Bookmark)
END_ACCESSOR()
END_ACCESSOR_MAP()
The online help mentions you must use CBookmark<4> for the ODBC provider, but says nothing about the Jet provider.
Anyone have any idea's?