Error: the name followed by '::' must be the name of a class or namespace

I am trying to create my first ATL DLL project in which I use ADODB. The problem here is that I get every ADODB class underlined

ADODB::_ConnectionPtr spADOConnection; 

when I pass the mouse over ADODB::_ConnectionPtr , I get name followed by '::' must be a class or namespace name spADOConnection . I get expected a ';' . What does this mean please? How can I fix it?

Thank you so much!

+7
c ++
source share
1 answer

The compiler cannot find the ADODB declaration. Make sure you include the appropriate header in the translation block where the compiler complains.

+10
source share

All Articles