ADO初始化问题!!!
我要做一个用ADO操作数据库的DLL,我在StdAfx.h中加入
#define INITGUID
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","EndOfFile")
#include "icrsint.h"
可编译的时候抱错:
--------------------Configuration: PuissaneControl - Win32 Debug--------------------
Compiling...
StdAfx.cpp
d:\zhongke\puissanecontrol\debug\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
d:\zhongke\puissanecontrol\debug\msado15.tlh(212) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
d:\zhongke\puissanecontrol\debug\msado15.tlh(256) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
d:\zhongke\puissanecontrol\debug\msado15.tlh(277) : error C2011: 'EditModeEnum' : 'enum' type redefinition
d:\zhongke\puissanecontrol\debug\msado15.tlh(285) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
d:\zhongke\puissanecontrol\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
d:\zhongke\puissanecontrol\debug\msado15.tlh(527) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
Error executing cl.exe.
PuissaneControl.dll - 6 error(s), 1 warning(s)
这是为什么?