日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

MFC的程序編譯出了一大堆類型重定義的error

 牛人的尾巴 2017-01-16

MFC的程序編譯出了一大堆類型重定義的error

老閆:


  為了解決用戶可能碰到關(guān)于"MFC的程序編譯出了一大堆類型重定義的error"相關(guān)的問題,突襲網(wǎng)經(jīng)過收集整理為用戶提供相關(guān)的解決辦法,請注意,解決辦法僅供參考,不代表本網(wǎng)同意其意見,如有任何問題請與本網(wǎng)聯(lián)系。"MFC的程序編譯出了一大堆類型重定義的error"相關(guān)的詳細(xì)問題如下: 我總共用了 #include <afxwin.h> // MFC 核心組件和標(biāo)準(zhǔn)組件 #include <afxext.h> // MFC 擴(kuò)展 #include <afxdisp.h> // MFC 自動化類 #ifndef _AFX_NO_OLE_SUPPORT #include <afxdtctl.h> // MFC 對 Inte... 
1>afxusertoolsmanager.h>vc\afxwin,可能的原因是什么呢;afxusertool;/include\.h>: “class”類型重定義
1>vc\:\.0\afxcontrolbarutil;vc\: error C2084;atlmfc\.0\ /include\: “CUserToolsManager”;afxdisp;program files\: error C2011;vc\ MFC 對 Windows 公共控件的支持
#endif /atlmfc\.h> MFC 對 Internet Explorer 4 公共控件的支持
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <: error C2011; _AFX_NO_AFXCMN_SUPPORT

#include <microsoft visual studio 9;afxext;program files\/vc\/d;include\atlmfc\/.0\.h(23) : 函數(shù)“BOOL IsStandardCommand(UINT)”已有主體
大都是CMFC和AFX等相關(guān)的類型重定義; c;microsoft visual studio 9; MFC 自動化類

#ifndef _AFX_NO_OLE_SUPPORT
#include <:\.h>program files\.h(33) ;afxdtctl;atlmfc\:\microsoft visual studio 9; 功能區(qū)和控件條的 MFC 支持
#include <: 參見“CUserTool”的聲明
1> MFC 核心組件和標(biāo)準(zhǔn)組件
#include <:\/ /: 參見“CUserToolsManager”的聲明
1>include\.0\ MFC 擴(kuò)展

#include <.h>/ /afxusertool;d; / / c;program files\microsoft visual studio 9;afxcmn;d; /: “class”類型重定義
1>afxusertoolsmanager;/atlmfc\include\.h>:\.0\microsoft visual studio 9.h(24) ;Winsock2;program files\.h>: “CUserTool”.h(24) ;afxcontrolbars.h(23) 我總共用了

#include < 展開 
===========突襲網(wǎng)收集的解決方案如下===========

用戶提供的回答1:
是你頭文件多次包含了吧

聲明:突襲網(wǎng)提供的解決方案均由系統(tǒng)收集自互聯(lián)網(wǎng),僅供參考,突襲網(wǎng)不保證其準(zhǔn)確性,亦不代表突襲網(wǎng)觀點,請自行判斷真?zhèn)?突襲網(wǎng)不承擔(dān)任何法律責(zé)任.

私密解決辦法:

原來包含頭文件不在#ifndef #endif內(nèi)

如下:#ifndef SHARED_HANDLERS

#include "oilpumpspecialist.h"

#endif

#include "oilpumpspecialistDoc.h"

#include "oilpumpspecialistView.h"

調(diào)整后如下:

#ifndef SHARED_HANDLERS

#include "oilpumpspecialist.h"

#include "oilpumpspecialistDoc.h"

#include "oilpumpspecialistView.h"

#endif

調(diào)整后問題解決。

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多