iCAx开思工具箱
标题:
二次开发中连接数据库的问题
[打印本页]
作者:
arisegod
时间:
2005-12-16 15:14
标题:
二次开发中连接数据库的问题
先建了一个dll项目,要采用ado的方式连接数据库,加入了下面的语句
// 加入ADO支持库
#import "c:\program files\common files\system\ado\msado15.dll" \
no_namespace \
rename ("EOF", "adoEOF")
编译的时候出现了好些错误啊
e:\mfc&c\test\debug\msado15.tlh(171) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
e:\mfc&c\test\debug\msado15.tlh(214) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
e:\mfc&c\test\debug\msado15.tlh(258) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
e:\mfc&c\test\debug\msado15.tlh(279) : error C2011: 'EditModeEnum' : 'enum' type redefinition
e:\mfc&c\test\debug\msado15.tlh(287) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
e:\mfc&c\test\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\mfc&c\test\debug\msado15.tlh(531) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
大家给指点一下吧!
作者:
arisegod
时间:
2005-12-16 20:03
我明白了,与一个头文件定义重复
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3