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("修改成功");
}
{
// 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("修改成功");
}
解决方案 »
- MFC,非模态对话框中[按钮]按下,获取父窗口的RGB,用gerpixel(),请问:HDC dc=::GetDC(??_)怎么取
- 创建com接口需要什么进程权限?
- 对话框的编辑框为何收不到我的WM_KEYDOWN 消息
- 请问一个多接口网关的开发
- 在dll中自己定义的类(不从mfc中继承),怎么能够解决类中进行消息处理?(急用)
- 虽然简单但困惑我的问题--选择了unicode编译方式下还可以声明char类型的变量吗,这时char到底是如何存储的?
- 十万火急:有谁知道如何打开用installshield(R)封装后的数据包?
- 弱问题,怎么截获WM_MOUSEMOVE消息???马上给分
- CArray的getcount与getsize是什么关系?
- 能不能在没有NT(只有95和98)的网络中使用DCOM?
- http-tunnel穿透?
- MFC中filecore.cpp文件中ASSERT出错
换ado方式试试呢