void CADO2View::OnAdd() 
{
// TODO: Add your control notification handler code here
_variant_t RecordsAffected;
UpdateData(true);
if(m_id.IsEmpty())
{
AfxMessageBox("学号不能为空");
return ;
}
CString strSQL;
strSQL.Format("INSERT INTO stu (stuNo,stuName,stuSex)VALUES('%s','%s','%s')",m_id,m_name,m_sex);
try 
{
m_pConnection->Execute((_bstr_t)strSQL,&RecordsAffected,adCmdText);//这个地方有异常,报一个空指针异常
           //从前面的代码来看,数据库的连接没有问题。我就想不明白这里的空指针异常说的是什么了
}catch (_com_error e)
{
CString errorStr;
errorStr.Format("%s",e.ErrorMessage());
AfxMessageBox(errorStr);
}
UpdateData(false);
}