VC++数据库连搠实例 // TODO: Add extra initialization here AfxOleInit(); CoInitialize(NULL); _bstr_t strConn("Provider=Microsoft.JET.OLEDB.4.0;Data Source=mydb.mdb"); try { HRESULT hr=m_pConnection.CreateInstance("ADODB.Connection") ; if(SUCCEEDED(hr)) { hr=m_pConnection->Open((LPCTSTR)strCo