请进来看看这个关于ADO的错误。
我在一个动态链接库中的StdAfx.h中的所有include后加入
#include <icrsint.h> //Include support for VC++ Extensions
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" \
no_namespace rename("EOF", "adoEOF")
但是编译报错如下:
d:\simulator\createdb\temp\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
d:\simulator\createdb\temp\msado15.tlh(212) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
d:\simulator\createdb\temp\msado15.tlh(256) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
d:\simulator\createdb\temp\msado15.tlh(277) : error C2011: 'EditModeEnum' : 'enum' type redefinition
d:\simulator\createdb\temp\msado15.tlh(285) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
d:\simulator\createdb\temp\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
d:\simulator\createdb\temp\msado15.tlh(527) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
Error executing cl.exe.
但是在一般应用程序中没有如此错误?
请问怎么解决?