Export (0) Print
Expand All

BEGIN_COLUMN_MAP 

Marks the beginning of a column map entry.


BEGIN_COLUMN_MAP(x )

Parameters

x

[in] The name of the user record class derived from CAccessor.

This macro is used in the case of a single accessor on a rowset. If you have multiple accessors on a rowset, use BEGIN_ACCESSOR_MAP.

The BEGIN_COLUMN_MAP macro is completed with the END_COLUMN_MAP macro. This macro is used when there is only one accessor required in the user record.

Columns correspond to fields in the rowset you want to bind.

Here is a sample column and parameter map:

class CArtists
{
public:
// Data Elements
   TCHAR m_szFirstName[20];
   TCHAR m_szLastName[30];
   short m_nAge;

// Output binding map
BEGIN_COLUMN_MAP( CArtists)
   COLUMN_ENTRY( 1, m_szFirstName )
   COLUMN_ENTRY( 2, m_szLastName )
   COLUMN_ENTRY( 3, m_nAge )
END_COLUMN_MAP( )

// Parameter binding map
BEGIN_PARAM_MAP( CArtists )
   COLUMN_ENTRY( 1, m_nAge )
END_PARAM_MAP( )
};

Community Additions

ADD
Show:
© 2015 Microsoft