1> May be "d: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxwin h (1115) : CMenu"
1> Or "e: \ vs2008 \ equipment/WTL/trunk/WTL \ include \ atluser h (148) : WTL: : CMenu"
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxpriv h (798) : error C2872: "CFont" : ambiguous symbol
1> May be "d: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxwin h (380) : CFont"
1> Or "e: \ vs2008 \ equipment/WTL/trunk/WTL \ include \ atlgdi h (683) : WTL: : CFont"
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (127) : error C2872: "CFont" : ambiguous symbol
1> May be "d: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxwin h (380) : CFont"
1> Or "e: \ vs2008 \ equipment/WTL/trunk/WTL \ include \ atlgdi h (683) : WTL: : CFont"
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (149) : error C2872: "CDC" : ambiguous symbol
1> May be "d: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxwin h (524) : the CDC"
1> Or "e: \ vs2008 \ equipment/WTL/trunk/WTL \ include \ atlgdi h (3356) : WTL: : CDC"
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (331) : error C2146: syntax errors: lack of ";" (in front of the identifier "m_dispDriver")
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (331) : error C4430: lack of type specifier - is assumed to be int, note: c + + does not support default int
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (331) : error C4430: lack of type specifier - is assumed to be int, note: c + + does not support default int
1> D: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxocc h (332) : error C2872: "CDC" : ambiguous symbol
1> May be "d: \ \ program files \ Microsoft visual studio 9.0 \ \ vc atlmfc \ include \ afxwin h (524) : the CDC"
1> Or "e: \ vs2008 \ equipment/WTL/trunk/WTL \ include \ atlgdi h (3356) : WTL: : CDC"
(afxocc. H)
Protected:
COleDispatchDriver m_dispDriver;
The CDC * m_pDC;//the CDC should be roughly on the correct side
Was a lot of similar mistake, is also newspaper in the library, I want to post what the code also don't know well... Not using the namespace WTL. No ON_WM_ERASEBKGND (), the project is others, is contains the WTL and ATL libraries, then I am a new a dialog, just according to the MFC to write a little, is an error, then I put the new dialog with. CPP. H have deleted or quote the wrong people, really don't know what to do,
CodePudding user response:
Try VS environment options included in the library of e: \ vs2008/equipment/WTL \ XXXX part deletedCodePudding user response:
A header file reference both the MFC and WTL, among them many of the same name,