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?
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395