void Cstu1::Onchange() 
{
// TODO: Add your control notification handler code here
    p->Edit();
AfxMessageBox("点击连接数据库后更新完毕"); }
void Cstu1::Onconnect() 
{
// TODO: Add your control notification handler code here
if(!UpdateData())
{
return;
}
TRY
{
p->Update();
}
CATCH(CDBException,e)
{
 AfxMessageBox(e->m_strError);
return;
}
END_CATCH;
p->Requery();
UpdateData(false);
 AfxMessageBox("修改成功");
}