This documentation is archived and is not being maintained.

ATL Provider Error ATL2013

Error Message

Class class contains a COLUMN_MAP. Attribute cannot be used on the class.

The attribute is incompatible with a COLUMN_MAP. Either remove the attribute or remove the COLUMN_MAP.

The following sample generates ATL2013.

// ATL2013.cpp
// compile with: /c
// ATL2013 expected
#include <atlbase.h>
#include <atldbcli.h>

[ db_command("Select FirstName, LastName from Employees") ]
class CEmployees
public :
// to resolve, remove the next two lines
   [ db_column(1) ] TCHAR m_szFirstName[21];
   [ db_column(2) ] TCHAR m_szLastName[21];