关于网友提出的“ 在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