vc++数据库编程求救

luou 2000-05-26 09:20:00
我想在vc中调用又Aceess生成的数据库文件,并实现简单的查询,修改,添加功能.
请问用和中空间最好?
谢谢!
...全文
176 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
octaprodiqy 2000-05-29
  • 打赏
  • 举报
回复
sorry,
in my first anwser, there may be have some mistakes at step 3.
in the "MFC AppWizard-step 2 of 6", you can change to check another item in "what database support would you like to include ",it may be better, but not necessary. try it youself.
the dbgrid.oxc is an ativex control, you my also add anthoer ativex named
microsoft ado data control, to add them :select "project->add to project->component and control->Registered ActiveX Controls" in VC.
the help of activex control is bond with it, you can push "more info " before you decide to insert it to see the hlep. ......if you have not
uesed activex in vc, you will take more time, but not to more .
go and don't trun back, you are today's victor
luou 2000-05-28
  • 打赏
  • 举报
回复
请问何处有Dbgrid.ocx的详细资料?
octaprodiqy 2000-05-26
  • 打赏
  • 举报
回复
1.你有数据库的基础;
2.建立ODBC;
3.建立标准SDI project;
4.加入由CRecordSet派生的CNewRecordSet类,选择合适的ODBC及table,.....
5.用CRecordSet类的函数操作CNewRecordSet的对象,
OK!由1至5约一天时间搞定,4是关键,but take it easy.
如你水平高可使用CRecordSetView,Dbgrid.ocx,ADO......ADO is better then ODBC.

ListCtrl中显示RecordSet:m_pListCtrl->InsertItem(.....)
xubin_sh 2000-05-26
  • 打赏
  • 举报
回复
当然是ado好罗,Microsoft强力推荐,com->oledb->adodb
Visual c++的考试,ado占很大一部份
luou 2000-05-26
  • 打赏
  • 举报
回复
如何在一个list控件中调用呢?
haihong 2000-05-26
  • 打赏
  • 举报
回复
用odbc和recordsetview比较好
slihai 2000-05-26
  • 打赏
  • 举报
回复
用Ado吧,封装的好,使用方便,又是发展趋势,就是效率不是很高。

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧