在_ConnectionPtr析构的时候要将_ConnectionPtr置NULL
ADODB::_ConnectionPtr conn;
conn.CreateInstance(__uuidof(ADODB::Connection));
...
...
...
conn.Close();
conn = NULL;
在_ConnectionPtr析构的时候要将_ConnectionPtr置NULL
ADODB::_ConnectionPtr conn;
conn.CreateInstance(__uuidof(ADODB::Connection));
...
...
...
conn.Close();
conn = NULL;