المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : variable and classes



C++ Programming
04-01-2009, 05:43 PM
How get value of variable that is in class View to
another class CAdodc_MDI()
LRESULT CADO_MDIView::OnGoodbye(WPARAM wParam, LPARAM lParam)
{
CString m_s(L”TEXT”);
}
for example another class:
BOOL CAdodc_MDI::OnInitDialog()

ADD the string:
#include "ADO_MDIView.h"

Set into file of implemetation ( three of variants)
// 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"
#include "UpdateDlg.h"
#include "MyModeless2.h"

#include "ADO_MDIView.h"
appwar below errors:

ado_mdiview.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ado_mdiview.h(19) : warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'