日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > php開源 > php教程 > error C2871: “ADODB”: 具有該名稱的命名空間不存在(error C2871: “ADODB”: 具有該名稱的命名空間不存在)

error C2871: “ADODB”: 具有該名稱的命名空間不存在(error C2871: “ADODB”: 具有該名稱的命名空間不存在)

來源:程序員人生   發布時間:2015-04-28 08:27:58 閱讀次數:6423次

1.WINDOWS.H already included. MFC apps must not #include <windows.h>

I just added the #import "C:Program FilesCommon FilesSystemadomsado15.dll" no_namespace rename("EOF","ADOEOF")

in the <StdAfx.h> file. When the import sentence was add in the head of file,the error occured. But when I moved it to the tail of the file,Everything was OK. I don't know why.

 

// stdafx.h : include file for standard system include files,

//  or project specific include files that are used frequently, but

//      are changed infrequently

//

//#import "C:Program FilesCommon FilesSystemadomsado15.dll" no_namespace rename("EOF","adoEOF")   ////error

#if !defined(AFX_STDAFX_H__C914C8D4_56EB_44CD_AE77_600C6D941BA2__INCLUDED_)

#define AFX_STDAFX_H__C914C8D4_56EB_44CD_AE77_600C6D941BA2__INCLUDED_

 

#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

 

#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

 

#include <afxwin.h>         // MFC core and standard components

#include <afxext.h>         // MFC extensions

#include <afxdisp.h>        // MFC Automation classes

#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls

#ifndef _AFX_NO_AFXCMN_SUPPORT

#include <afxcmn.h> // MFC support for Windows Common Controls

#endif // _AFX_NO_AFXCMN_SUPPORT

#import "C:Program FilesCommon FilesSystemadomsado15.dll" no_namespace rename("EOF","ADOEOF") ////is OK

 

//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

 

#endif // !defined(AFX_STDAFX_H__C914C8D4_56EB_44CD_AE77_600C6D941BA2__INCLUDED_)

 
 
2error C2011: 'DataTypeEnum' : 'enum' type redefinition解決方法
2009-06⑵6 17:36

1>------ 已啟動生成: 項目: iotser, 配置: Debug Win32 ------
1>正在編譯...
1>iotser.cpp
1>f:c++ proiocptserdebugmsado15.tlh(228) : error C2011: “LockTypeEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(109) : 參見“LockTypeEnum”的聲明
1>f:c++ proiocptserdebugmsado15.tlh(276) : error C2011: “DataTypeEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(138) : 參見“DataTypeEnum”的聲明
1>f:c++ proiocptserdebugmsado15.tlh(321) : error C2011: “FieldAttributeEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(127) : 參見“FieldAttributeEnum”的聲明
1>f:c++ proiocptserdebugmsado15.tlh(343) : error C2011: “EditModeEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(83) : 參見“EditModeEnum”的聲明
1>f:c++ proiocptserdebugmsado15.tlh(352) : error C2011: “RecordStatusEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(341) : 參見“RecordStatusEnum”的聲明
1>f:c++ proiocptserdebugmsado15.tlh(616) : error C2011: “ParameterDirectionEnum”: “enum”類型重定義
1>        c:program filesmicrosoft sdkswindowsv6.0aincludedbdaoint.h(326) : 參見“ParameterDirectionEnum”的聲明
1>f:c++ proiocptseriocptser.cpp(18) : error C2871: “ADODB”: 具有該名稱的命名空間不存在
1>生成日志保存在“file://f:C++ proiocptserDebugBuildLog.htm”
1>iocptser - 7 個毛病,0 個正告
========== 生成: 成功 0 個,失敗 1 個,最新 0 個,跳過 0 個 ==========


后來經過在csdn上的搜索發現有下面兩種辦法來解決這個問題

1)

#pragma warning(disable:4146)
#import "C:Program FilesCommon FilesSystemADOmsado15.dll" named_guids rename("EOF","adoEOF"), rename("BOF","adoBOF")
#pragma warning(default:4146)
using namespace ADODB;

2)

#pragma warning(disable:4146)
#import "C:Program FilesCommon FilesSystemadomsado15.dll"
no_namespace
rename("EOF","adoEOF") rename("DataTypeEnum","adoDataTypeEnum")
rename("FieldAttributeEnum", "adoFielAttributeEnum") rename("EditModeEnum", "adoEditModeEnum")
rename("LockTypeEnum", "adoLockTypeEnum") rename("RecordStatusEnum", "adoRecordStatusEnum")
rename("ParameterDirectionEnum", "adoParameterDirectionEnum")

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 成人国产精品免费网站 | 亚洲a v网站 | 日韩欧美综合在线视频 | 理论片在线视频 | 国产精品99久久免费观看 | 福利视频二区 | 久久骚 | 伊人色综合网 | 国产一区二区三区四区三区四 | 亚洲网站在线看 | 福利在线影院 | 最新av电影网站 | 韩国日本美国免费毛片 | 日韩在线播放一区 | 国产日韩精品在线 | 成人h视频在线观看 | 国产福利91精品一区二区三区 | 黄色一级大片 | 99久久成人 | 亚洲20p | 亚洲综合区 | 快射视频在线观看 | 久久生活片 | 国产精品久久久久久久久免费 | 淫男乱女 笨蛋英子 | 午夜精品| 国产专区在线播放 | 久久久免费精品视频 | 福利视频久久 | 一区二区三区精品视频 | 亚洲一区中文字幕 | 美女一区二区三区 | 男女上床网站 | 午夜日韩| 国产福利资源 | 成人精品一区二区三区电影黑人 | 国产a网| 久久国产精品一区 | 88国产精品视频一区二区三区 | 国产精品二区一区二区aⅴ污介绍 | xxxx成人|