您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> VC/MFC >> 在MFC DLL中使用ADO的问题

在MFC DLL中使用ADO的问题

来源:网络整理     时间:2016/8/20 5:47:40     关键词:

关于网友提出的“ 在MFC DLL中使用ADO的问题”问题疑问,本网通过在网上对“ 在MFC DLL中使用ADO的问题”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 在MFC DLL中使用ADO的问题
描述:

建立一个MFC DLL(普通的),加入代码
#import "c:\program files\common files\system\ado\msado15.dll" \
no_namespace \
rename ("EOF", "adoEOF")   
后,出现以下错误,请问如何解决?
\debug\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
\debug\msado15.tlh(212) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
\debug\msado15.tlh(256) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
\debug\msado15.tlh(277) : error C2011: 'EditModeEnum' : 'enum' type redefinition
\debug\msado15.tlh(285) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
\debug\msado15.tlh(527) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
Error executing cl.exe.


解决方案1:

http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=199158

解决方案2:

楼主发重复了.........


以上介绍了“ 在MFC DLL中使用ADO的问题”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3413941.html

相关图片

相关文章