
c++/vc
zidasine
爱好广泛
展开
-
VC ADO Oracle 读写BLOB
1、向数据库中插入一条带有BLOB字段的记录 以下为手动敲入 由于环境问题不能copy 代码 如有笔误或者错误请见谅_Connection m_pConnection;//假设已得到CFile m_file;CFileException e;_RecordsetPtr m_pRecordset;m_pRecordset.CreateInstance(__uuidof(R原创 2011-06-04 15:52:00 · 2493 阅读 · 0 评论 -
VC ADO Oracle 修改BLOB
CString strSql;_CommandPtr m_pCom;m_pCom.CreateInstance(__uuidof(Command));m_pCom->AcitveConnection = xxx;//数据库连接m_pCom->CommandType = adCmdText;strSql.Format("update table set A=?,BLOB(字段名)原创 2011-06-11 17:51:00 · 1217 阅读 · 0 评论 -
VC对话框中树形控件节点编辑响应回车事件完成编辑
对话框 添加 PreTranslateMessageBOOL CDlgXXX::PreTranslateMessage(MSG * pMsg){ if(pMsg->message == WM_KEYDOWN) { if(pMsg->wParam == VK_RETURN) { CEdit * pLabelEdit = m_tree.原创 2011-06-15 10:38:00 · 1041 阅读 · 0 评论 -
VC 对话框中树形控件添加右键菜单
对话框控件添加 OnContextMenu void CDlgXXX::OnContextMenu(CWnd* pWnd,CPoint point){ if(pWnd == &m_tree) { m_tree.ScreenToClient(&point); CMenu m_menu; m_menu.LoadMenu(ID_MENU_X原创 2011-06-15 10:31:00 · 1173 阅读 · 0 评论