Check in the generated msado15.tlh if it contains the ADODB namespace.
i.e. see can you find the following in it
#include <comdef.h>
namespace ADODB {
...
I guess it does, in which case you can use either
using namespace ADODB;
// or
ADODB::_ConnectionPtr m_pConn;
Which compiler are you using?
Reputation Points: 1105
Solved Threads: 389
Posting Virtuoso
Offline 1,714 posts
since Nov 2007