建了一个MFC DLL工程,由于要操作数据库,
在stdfx.h 加入#import "c:\program files\common files\system
\ado\msdao15.dll" no_namespaces rename("EOF" adoEOF")
结果编译出错:
...\debug\msdao15.tlh():error c2011 : 'LockTypeEnum' : 'enum' type redefinition
...\debug\msdao15.tlh():error c2011 : 'DataTypeEnum' : 'enum' type redefinition
...\debug\msdao15.tlh():error c2011 : 'FieldAttributedEnum' : 'enum' type redefinition
...\debug\msdao15.tlh():error c2011 : 'EditModeEnum' : 'enum' type redefinition
...\debug\msdao15.tlh():error c2011 : 'RecordStatusEnum' : 'enum' type redefinition
...\debug\msdao15.tlh():error c2011 : 'ParameterDirectionEnum' : 'enum' type redefinition如果建个MFC EXE工程就不会有上面的错误什么问题 ?