实现班级信息管理if(FAILED(pRs->Open((_variant_t)strSQL,_variant_t((IDispatch*)theApp.m_pConnection,true),adOpenStatic,adLockOptimistic,adCmdText))){AfxMessageBox("CannotopenDatabase!");pRs.Release();return;}