error: name followed by '::' must be a class or namespace name

I'm trying to build my first ATL DLL project, in which I'm using ADODB. The issue here is that I'm getting each ADODB class underlined

ADODB::_ConnectionPtr spADOConnection; 

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

Thanks a lot!

4

1 Answer

The compiler is unable to locate the declaration of ADODB. Make sure you include the relevant header in the translation unit where the compiler complains.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like