..\msado15.tlh(214) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
..\msado15.tlh(258) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
..\msado15.tlh(279) : error C2011: 'EditModeEnum' : 'enum' type redefinition
..\msado15.tlh(287) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
..\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
..\msado15.tlh(531) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
解决方法:
1复制以下代码到stdafx.h
#import "C:\Program Files\Common Files\System\ado\msado15.dll" \
no_namespace rename("EOF", "adoEOF")rename("BOF","adoBOF")
2将 宏 _AFX_NO_DAO_SUPPORT 添加到setting->c/c++(category下拉框选中 preprocessor)->preprocessor definitions 的最后即可