void CClassDialog::OnScbj() 
{
// TODO: Add your control notification handler code here
CString SQL;
CString str; m_Bjmc.GetWindowText(str);
SQL.Format("delete from Class where ClassName=%s",str);
m_Class.m_cnn->m_pConn->Execute(_bstr_t(SQL),NULL,adCmdText);

}
我想通过点击按钮实现删除数据库中的一行
怎么不能删除
请各位大虾帮帮忙呀看看有什么错哦!
m_Class是从封装了_RecordsetPtr的类中继承来的。m_pConn是从封装了_ConnectionPtr的类中