Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. variable and class View

variable and class View

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelp
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    durban2
    wrote on last edited by
    #1

    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)

    C 1 Reply Last reply
    0
    • D durban2

      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)

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      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]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups