不懂VC,拿了个VC源代码编译却出现下列错误提示,请各位多多指教,到底是哪出了问题?
e:\work\box\release\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(212) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(256) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(277) : error C2011: 'EditModeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(285) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\work\box\release\msado15.tlh(527) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(212) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(256) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(277) : error C2011: 'EditModeEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(285) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
e:\work\box\release\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\work\box\release\msado15.tlh(527) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
解决方案 »
- 关于CrollBar控件的应用
- GetExtendedTcpTable用法问题,有用过GetExtendedTcpTable的请进 [
- 请问每个模块中都有资源句柄 这个是用来干什么的 问题很弱。。。
- 如何使用WSAConnect的使用
- 真诚求助!
- 刚开始接触ADO编程,请教高手,关于ADO编程的几个问题?
- Dialog有没有hwnd?用SDI时,使用CFormView,生成的界面有一个框,如何将这个框去掉?
- edit中的汉字问题??
- 我的EXE要使用常规DLL的导出类就必须LINK这个DLL对应的LIB吗?在我的EXE里,可以对DLL的导出类进行派生(derive)吗?
- 怎么实现实时的语音采样和压缩?
- 如何获得1个中文字符的utf8编码
- 图像保存
你要去掉stdafx.h中的这几段话即可。#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT
你还要用ADO么?这样试试,你把你的#import".....\msado15.dll"后面的no_namespace这个词去掉。
这样在导入的时候会默认生成一个ADODB的名字空间,你再使用ADO对象的时候,需要加上名字空间。