VC6.0 添加了两个文件ado.h ado.cpp,通过ADO链接sql。在我的台式机上运行良好,在我的本上报错
error C2146: syntax error : missing ';' before identifier 'ConflictTables'
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tlh(100) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tlh(100) : error C2501: 'ConflictTables' : missing storage-class or type specifiers
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tlh(128) : error C2146: syntax error : missing ';' before identifier 'GetConflictTables'
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tlh(128) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tli(43) : error C2143: syntax error : missing ';' before 'tag::id'
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tli(43) : error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tli(43) : error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
f:\新建文件夹 (2)\农产品物流管理\debug\msjro.tli(43) : fatal error C1004: unexpected end of file found
各位大虾,帮帮忙,我折腾了一下午,搞不定。谢谢!我等着,OK?
VC 通过ADO链接sql,原本运行良好的程序迁移后报错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- Zhangah07 2014-04-29 00:57关注
你没有在StdAfx.h中加入#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")吧?这个事引入ado数据库技术的核心啊亲。。
解决 无用评论 打赏 举报
悬赏问题
- ¥65 永磁型步进电机PID算法
- ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
- ¥88 找成都本地经验丰富懂小程序开发的技术大咖
- ¥15 如何处理复杂数据表格的除法运算
- ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
- ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
- ¥15 latex怎么处理论文引理引用参考文献
- ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
- ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
- ¥15 乘性高斯噪声在深度学习网络中的应用