Export (0) Print
Expand All
Expand Minimize

ATL Provider Error ATL2010

Error Message

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
#define _ATL_ATTRIBUTES
#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")];
}

Community Additions

ADD
Show:
© 2015 Microsoft