A set of ADO classes - version 2.20 使用疑问

zhuyf87 2014-02-14 03:56:19
大家好,我在CodeProject上看到一个ADO封装类。
地址是:http://www.codeproject.com/Articles/1075/A-set-of-ADO-classes-version-2-20

我下载之后,在Win7 sp1 + vs2008的环境下编译出现很多错误:

1>Make sure you go to Tools.Options.Directories.Library files and add the paths to msado15.dll and msjro.dll will usually be in C:\Program Files\Common Files\System\ado
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C2146: syntax error : missing ';' before identifier 'ConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C2146: syntax error : missing ';' before identifier 'GetConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : warning C4183: 'GetConflictTables': missing return type; assumed to be a member function returning 'int'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C2143: syntax error : missing ';' before 'IReplica::GetConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

...

我想问下坛子里的大神们,谁在Win7 sp1 + vs2008的环境下用过这个类,最好是Unicode的工程。能不能帮助一下俺小菜。谢谢。
...全文
302 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
worldy 2014-02-16
  • 打赏
  • 举报
回复
缺少了某个include文件,
zhuyf87 2014-02-16
  • 打赏
  • 举报
回复
引用 13 楼 zyq5945 的回复:
拷贝过去后应该重新用RegSvr32注册下,下载别人的工程的话最好是清理后重新编译。
谢谢,已经用起来了。主要是msado15.dll、msjro.dll的引入和里面的命名空间冲突等原因造成的。
zyq5945 2014-02-15
  • 打赏
  • 举报
回复
拷贝过去后应该重新用RegSvr32注册下,下载别人的工程的话最好是清理后重新编译。
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
狠狠的折腾了一翻,error算是没有了。
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
引用 9 楼 oyljerry 的回复:
win7上的ADO版本是不是更新了,老的用不了
您的意思是,它这套封装类,里面用的一些东西是老ADO库里面的,对于新的ADO库已经不适用了?
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
引用 9 楼 oyljerry 的回复:
win7上的ADO版本是不是更新了,老的用不了
应该是更新了。
oyljerry 2014-02-14
  • 打赏
  • 举报
回复
win7上的ADO版本是不是更新了,老的用不了
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
折腾了半天,错误没有了。
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
谢谢版主。不过还是不成,在等等吧,看看有没有人用过这个。
快乐鹦鹉 2014-02-14
  • 打赏
  • 举报
回复
看看文件包含的顺序有没有问题啊。有时候不同文件包含顺序不同,会导致编译混乱
快乐鹦鹉 2014-02-14
  • 打赏
  • 举报
回复
确实没用过,还是环境的问题
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
http://blog.sina.com.cn/s/blog_5913fa2301017esh.html 按照这篇文章说的,将xp sp3的msado15.dll,msjro.dll的拷贝过来用,还是不行。
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
唉,还是编译不过。有谁用过这个。
zhuyf87 2014-02-14
  • 打赏
  • 举报
回复
引用 1 楼 happyparrot 的回复:
Make sure you go to Tools.Options.Directories.Library files and add the paths to msado15.dll and msjro.dll will usually be in C:\Program Files\Common Files\System\ado
嗯。这个做了。错误中没有#import找不到dll的问题。 import是成功的。貌似是win7 sp1对ADO库的某些内容做了更新。
快乐鹦鹉 2014-02-14
  • 打赏
  • 举报
回复
Make sure you go to Tools.Options.Directories.Library files and add the paths to msado15.dll and msjro.dll will usually be in C:\Program Files\Common Files\System\ado

4,011

社区成员

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

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