variable and class View
-
MFC, STUDIO 2008, MDI-project Christ has arisen! There are 2 classes: class CADO_MDIView : public CscrollView class CAdodc_MDI : public Cdialog В class CADO_MDIView имеем CString m_s5(“YYYYYYYYYYY”); MessageBox(m_s); // ADO_MDIView.cpp : implementation of the CADO_MDIView class #include "stdafx.h" #include "ADO_MDI.h" #include "ADO_MDIDoc.h" #include "CntrItem.h" #include "ADO_MDIView.h" #include "Adodc_MDI.h" // Adodc_MDI.cpp : implementation file #include "stdafx.h" #include "ADO_MDI.h" //-1 #include "ADO_MDIView.h" #include "Adodc_MDI.h" //-3 #include "ADO_MDIView.h" CADO_MDIView dlg_View; // adodc_mdi.cpp(211) dlg_View.m_s5; -------------------------------------- ado_mdiview.h(23) : error C2143: syntax error : missing ';' before '*' ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ado_mdiview.h(23) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int' adodc_mdi.cpp(211) : error C2248: 'CADO_MDIView::CADO_MDIView' : cannot access protected member declared in class 'CADO_MDIView' ado_mdi\ado_mdiview.h(18) : see declaration of 'CADO_MDIView::CADO_MDIView' ado_mdi\ado_mdiview.h(15) : see declaration of 'CADO_MDIView' -------------------------------------- // Attributes public: CADO_MDIDoc* GetDocument() const; // ado_mdiview.h(23) -------------------------------------- class CADO_MDIView : public CScrollView { protected: // create from serialization only CADO_MDIView(); // ado_mdi\ado_mdiview.h(18)
-
MFC, STUDIO 2008, MDI-project Christ has arisen! There are 2 classes: class CADO_MDIView : public CscrollView class CAdodc_MDI : public Cdialog В class CADO_MDIView имеем CString m_s5(“YYYYYYYYYYY”); MessageBox(m_s); // ADO_MDIView.cpp : implementation of the CADO_MDIView class #include "stdafx.h" #include "ADO_MDI.h" #include "ADO_MDIDoc.h" #include "CntrItem.h" #include "ADO_MDIView.h" #include "Adodc_MDI.h" // Adodc_MDI.cpp : implementation file #include "stdafx.h" #include "ADO_MDI.h" //-1 #include "ADO_MDIView.h" #include "Adodc_MDI.h" //-3 #include "ADO_MDIView.h" CADO_MDIView dlg_View; // adodc_mdi.cpp(211) dlg_View.m_s5; -------------------------------------- ado_mdiview.h(23) : error C2143: syntax error : missing ';' before '*' ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ado_mdiview.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ado_mdiview.h(23) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int' adodc_mdi.cpp(211) : error C2248: 'CADO_MDIView::CADO_MDIView' : cannot access protected member declared in class 'CADO_MDIView' ado_mdi\ado_mdiview.h(18) : see declaration of 'CADO_MDIView::CADO_MDIView' ado_mdi\ado_mdiview.h(15) : see declaration of 'CADO_MDIView' -------------------------------------- // Attributes public: CADO_MDIDoc* GetDocument() const; // ado_mdiview.h(23) -------------------------------------- class CADO_MDIView : public CScrollView { protected: // create from serialization only CADO_MDIView(); // ado_mdi\ado_mdiview.h(18)
Well, you have errors in your
ado_mdiview.h
. What else? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]