ADO编程:error C2011: 'LockTypeEnum' : 'enum' type redefinition
1
2 3 |
// Import the ADO type library
#import "C:\\Program Files\\Common Files\\system\\ado\\msadox.dll" #import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename ("EOF","adoEOF") |
以下网上流传的方法,被转来转去,然而试了没啥作用!
1
2 3 4 5 6 7 8 9 10 11 12 13 |
// 1)
#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; // 2) #pragma warning(disable:4146) #import "C:/Program Files/Common Files/System/ado/msado15.dll" / no_namespace / rename("EOF","adoEOF") rename("DataTypeEnum","adoDataTypeEnum") / rename("FieldAttributeEnum", "adoFielAttributeEnum") rename("EditModeEnum", "adoEditModeEnum") / rename("LockTypeEnum", "adoLockTypeEnum") rename("RecordStatusEnum", "adoRecordStatusEnum") / rename("ParameterDirectionEnum", "adoParameterDirectionEnum") |
最终有效的方法:(VC++6.0)Project ->Setting -> C/C++ ->perprocessor ->perprocessor definitions : 里面添加 宏 _AFX_NO_DAO_SUPPORT
转载于:https://www.cnblogs.com/MakeView660/p/7694226.html
ADO编程:error C2011: 'LockTypeEnum' : 'enum' type redefinition相关推荐
- ADO编程中ATL所遇到的定义问题
ADO编程中ATL所遇到的定义问题 当欲向接口中定义方法如下: [id(1), helpstring("method SearchCust")] HRESULT Sear ...
- Linux交叉编译问题strace解决 signalfd.c:15: xlat/sfd_flags.h:17: error: size of array 'type name' is negative
产品不是很稳定,执行shell容易出现段错误,为了定位打算移植strace到嵌入式板子上,环境是MIPS平台,从github上下载的strace源码,编译ARM平台通过( ubuntu 12.04 交 ...
- error java on syntax token_解决Java“syntax error on token enum”问题
本来我的问题是jsp中变量名命名和保留关键字重复了,如下图.无意中又找到下面的问题和解决方案作为笔记. 解决方法:修改变量名. ==================================== ...
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machin ...
- error C2011: “Font”:“struct”类型重定义
error C2011: "Font":"struct"类型重定义 在VS2008里添加在VC6.0里形成的OFFICE库文件的类 excel.h.excel. ...
- configure: error: cannot guess build type; you must specify one解决方法
configure: error: cannot guess build type; you must specify one解决方法 参考文章: (1)configure: error: canno ...
- configure: error: cannot guess build type; you must specify one
今天在arm上用configure生成makefile时报错:configure: error: cannot guess build type; you must specify one 问题: 不 ...
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machin ...
- 【转】掌握java枚举类型(enum type)
原文网址:http://iaiai.iteye.com/blog/1843553 1 背景 在java语言中还没有引入枚举类型之前,表示枚举类型的常用模式是声明一组具有int常量.之前我们通常利用 ...
- error: #79: expected a type specifier
问题: error: #79: expected a type specifier 错误:# 79:预期的类型说明符 原因: void xms20tp(u8 xx); XX已被定义IO口.
最新文章
- 周鸿祎谈抢票:技术推动建立一个高效的公平社会
- 鸿蒙2.0操作体验,鸿蒙2.0操作系统正式版-华为鸿蒙2.0操作系统正式版官方预约 v1.0.0-优盘手机站...
- C#调用C/C++ DLL 参数传递和回调函数的总结
- 十个经典Java 集合面试题!
- gridview中如果文字太多指点要显示的文字
- Android wifi ADB的使用
- PHP JSON数组与对象的理解
- python怎么转到下一行_Python转到下一行并保存/编辑内容
- 在windows上搭建redis集群(主从复制)
- 【OpenStack】【Rocky】安装Rocky之前的先决条件包
- 剑指offer:二叉树打印成多行(层次遍历)
- vs2012建立java,在Microsoft Visual Studio 2012中使用Java
- 错过后悔十年!计算机视觉入门到精通,学习书籍推荐
- 哪些排序是不稳定的?稳定又意味着什么?
- unpivot行转列 oracle,oracle-行转列点评oracle11g sql新功能pivot/unpivot
- java第六章十七题_Java语言面试题十七
- 计算机主板不通电,电脑电源正常,但主板不通电
- Android开发必备(干货源码放送大)
- Linux驱动学习--V4L2设备(二)subdev的ops介绍及media framework深入解析
- alibab的滑动验证
热门文章
- TCP/IP协议分层模型以及数据的封装和分用
- Spring声明式事务配置的两种策略SpringAop和Bean后处理器的代理BeanNameAutoProxyCreator
- vue+element的表格分页和前端搜索
- Visual Studio 2017正式发布
- yii2组件之多图上传插件FileInput的详细使用
- JavaScript—从数组的indexOf方法深入——Object的Property机制。
- ROS(9):机器人开源项目poppy-project
- bgr to rgb
- RAC动态资源(DRM)管理介绍
- [2018.03.14 T3] 圈圈(cyclic)