Export (0) Print
Expand All
Expand Minimize

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
#define _ATL_ATTRIBUTES
#include <atlbase.h>
#include <atldbcli.h>

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

Community Additions

ADD
Show:
© 2014 Microsoft