BOOKMARK_ENTRY

BOOKMARK_ENTRY( variable )

Parameters

variable

[in] The variable to be bound to the bookmark column.

Remarks

Use this macro to bind the bookmark column.

Example

This sample shows how to use the BOOKMARK_ENTRY macro:

class CArtists
{
public:
// Data Elements
   CBookmark<4> m_bookmark;
   TCHAR m_szFirstName[20];
   TCHAR m_szLastName[30];
   short m_nAge;

// output binding map
BEGIN_COLUMN_MAP(CArtists)
   BOOKMARK_ENTRY(bookmark)
   COLUMN_ENTRY(1, m_szFirstName)
   COLUMN_ENTRY(2, m_szLastName)
   COLUMN_ENTRY(3, m_nAge)
END_COLUMN_MAP()
};

Macros for OLE DB Consumer Templates

See Also

CBookMark, DBPROP_BOOKMARKS in the OLE DB Programmer's Reference.