This documentation is archived and is not being maintained.

ATL Provider Error ATL2010

Undeclared identifier "id".

The attribute references an undeclared identifier. To resolve the error, ensure that id is declared.

The following sample generates ATL2010.

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

int main()
   [ db_source("<Connection string to connect to Northwind database>")];
   // Uncomment the next line to correct ATL2010:
   // char szFirstName[21];
   [ db_command("([bindto] szFirstName) select FirstName from Employees")];