请问谁看过《ATL COM 和 ADO》这篇文章?

caigenliu 2006-08-10 02:54:22
请问谁看过《ATL COM 和 ADO》这篇文章? 因为这篇文章的例子是用VB写的,我改为用VC 6.0做客户端出现如下错误:
error C2146: syntax error : missing ';' before identifier 'ReadFromFile'
error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before 'tag::id'
error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found

请问那位达人这是怎么回事? 请哪位哥们帮帮忙吧,另外还有一篇一起200分了,倾家荡产了
...全文
165 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanilyer 2006-08-11
  • 打赏
  • 举报
回复
hoho JF了
caigenliu 2006-08-11
  • 打赏
  • 举报
回复
up
caigenliu 2006-08-10
  • 打赏
  • 举报
回复
up
handsomerun 2006-08-10
  • 打赏
  • 举报
回复
是不是头文件没有包含阿??

看看他vb的例子是怎么做的,学一下哦
caigenliu 2006-08-10
  • 打赏
  • 举报
回复
我看的是这篇文章:http://www.codeproject.com/atl/atl_ado.asp
因为这文章是用VB写的客户端,我改用VC客户端调用文章的控件出现的这个问题,不知怎么回事?
我已在我程序的Stdafx.h中添加了:
#import "..\FindCust\FindCust.tlb" no_namespace

#import "C:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
能否请哪位哥们看看这篇文章,改个VC的客户端发给我? caigenliu@sohu.com
谢谢了
中文版的有这个:http://www.vckbase.com/document/viewdoc/?id=1260

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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