C++封装ADO数据库连接,附上DLL源码和测试程序

上传者: shortcoder | 上传时间: 2021-08-31 08:24:49 | 文件大小: 30.84MB | 文件类型: RAR
因工作需要,一些项目中频繁的用到ADO连接数据库,每次都要写一些初始化过程,或者copy过来大篇代码。 “一份好的代码,一用好多年,封装成动态库,一直带身边”,为了提高工作效率或者说为了偷懒,就封装出这么一个dll, 是VS2008的工程,导出类时有遇到问题,加上下列代码可以解决。 //解决导出动态库报错问题! #pragma warning(disable:4146) #import "C:\Program Files\Common Files\System\ADO\msado15.dll" named_guids rename("EOF","adoEOF"), rename("BOF","adoBOF") #pragma warning(default:4146) using namespace ADODB;

文件下载

资源详情

[{"title":"( 85 个子文件 30.84MB ) C++封装ADO数据库连接,附上DLL源码和测试程序","children":[{"title":"ADODLLTest","children":[{"title":"Release","children":[{"title":"ADODLL.dll <span style='color:#111;'> 30.00KB </span>","children":null,"spread":false},{"title":"ADODLL.lib <span style='color:#111;'> 6.51KB </span>","children":null,"spread":false},{"title":"HLSN.mdb <span style='color:#111;'> 996.00KB </span>","children":null,"spread":false},{"title":"ADODLLTest.pdb <span style='color:#111;'> 3.26MB </span>","children":null,"spread":false},{"title":"ADODLLTest.exe <span style='color:#111;'> 44.00KB </span>","children":null,"spread":false},{"title":"ADODLLTest.lib <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"ADODLLTest.exp <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"ADODLLTest","children":[{"title":"ReadMe.txt <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"vc90.idb <span style='color:#111;'> 563.00KB </span>","children":null,"spread":false},{"title":"ADODLLTest.exe.intermediate.manifest <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"ADODLLTest.obj <span style='color:#111;'> 35.53KB </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 2.21MB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"msado15.tli <span style='color:#111;'> 75.28KB </span>","children":null,"spread":false},{"title":"ADODLLTest.res <span style='color:#111;'> 22.85KB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 2.94MB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 6.35KB </span>","children":null,"spread":false},{"title":"msado15.tlh <span style='color:#111;'> 104.07KB </span>","children":null,"spread":false},{"title":"ADODLLTest.pch <span style='color:#111;'> 29.25MB </span>","children":null,"spread":false},{"title":"ADODLLTestDlg.obj <span style='color:#111;'> 64.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"ADODLL.dll <span style='color:#111;'> 30.00KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"ADODLLTest.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"ADODLLTest.rc2 <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":true},{"title":"ADODLL.lib <span style='color:#111;'> 6.51KB </span>","children":null,"spread":false},{"title":"ADODLLTestDlg.h <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"ADODLLTestDlg.cpp <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"ADODLLTest.vcproj <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"ADODLLTest.aps <span style='color:#111;'> 41.67KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ADODLLTest.exe.embed.manifest.res <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"vc90.idb <span style='color:#111;'> 883.00KB </span>","children":null,"spread":false},{"title":"ADODLLTest.exe.intermediate.manifest <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"ADODLLTest.obj <span style='color:#111;'> 19.59KB </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 1.91MB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"ADODLLTest.res <span style='color:#111;'> 22.85KB </span>","children":null,"spread":false},{"title":"ADODLLTest.exe.embed.manifest <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 454.70KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 10.74KB </span>","children":null,"spread":false},{"title":"ADODLLTest.pch <span style='color:#111;'> 23.94MB </span>","children":null,"spread":false},{"title":"ADODLLTestDlg.obj <span style='color:#111;'> 36.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"ADODLLTest.vcproj.HANSLASER.xiell112536.user <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"ADOProcedureMgr.h <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"ADODLLTest.rc <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false},{"title":"ADODLLTest.h <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"ADODLLTest.cpp <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"ADODLLTest.ncb <span style='color:#111;'> 17.92MB </span>","children":null,"spread":false},{"title":"ADODLLTest.sln <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"ADODLLTest.suo <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"ADODLL","children":[{"title":"Release","children":[{"title":"ADODLL.dll <span style='color:#111;'> 30.00KB </span>","children":null,"spread":false},{"title":"ADODLL.lib <span style='color:#111;'> 6.51KB </span>","children":null,"spread":false},{"title":"ADODLL.exp <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"ADODLL.pdb <span style='color:#111;'> 3.21MB </span>","children":null,"spread":false}],"spread":true},{"title":"ADODLL.sln <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"ADODLL.suo <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"ADODLL","children":[{"title":"ReadMe.txt <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"ADODLL.res <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"vc90.idb <span style='color:#111;'> 571.00KB </span>","children":null,"spread":false},{"title":"ADOProcedureMgr.obj <span style='color:#111;'> 549.71KB </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 2.25MB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"msado15.tli <span style='color:#111;'> 75.27KB </span>","children":null,"spread":false},{"title":"ADODLL.pch <span style='color:#111;'> 26.13MB </span>","children":null,"spread":false},{"title":"ADODLL.dll.intermediate.manifest <span style='color:#111;'> 851B </span>","children":null,"spread":false},{"title":"ADODLL.obj <span style='color:#111;'> 32.83KB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 2.54MB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false},{"title":"msado15.tlh <span style='color:#111;'> 104.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"res","children":[{"title":"ADODLL.rc2 <span style='color:#111;'> 362B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"ADODLL.vcproj <span style='color:#111;'> 5.30KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"ADODLL.rc <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"ADODLL.h <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"ADOProcedureMgr.h <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"ADODLL.vcproj.HANSLASER.xiell112536.user <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"ADOProcedureMgr.cpp <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"ADODLL.def <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"ADODLL.cpp <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"ADODLL.ncb <span style='color:#111;'> 19.90MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • wangliang651 :
    例子不错 正在调试
    2019-12-31
  • linwanyi1214 :
    感觉还不错,可以用
    2019-01-28
  • zhenghau1987 :
    dll无源码,只有一个调用实例是源码,无实际意义。
    2018-09-11
  • u012909342 :
    感觉还不错,可以用
    2018-04-12
  • aadongfengjulang :
    非常遗憾,解压失败,再次下载
    2017-12-11

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明