Eroare la CEdit::OnGetDlgCode
Posted: 01 Apr 2012, 15:33
Salut
Un lucru nu il inteleg, cand pun aceasta linie de cod:
TRACE0("\n CCustomEdit::OnGetDlgCode");
UINT nDefDlgCode = CEdit::OnGetDlgCode(); // default value
UINT nCustomDlgCode = nDefDlgCode | DLGC_WANTALLKEYS; // wants all keys
imi zice :
probdlg.cpp(380): error C2248: 'CWnd::OnGetDlgCode' : cannot access protected member declared in class 'CWnd'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(3016) : see declaration of 'CWnd::OnGetDlgCode'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(2273) : see declaration of 'CWnd'
probdlg.cpp(380): error C2352: 'CWnd::OnGetDlgCode' : illegal call of non-static member function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(3016) : see declaration of 'CWnd::OnGetDlgCode'
Eroarea este la CEdit:: ....
Un lucru nu il inteleg, cand pun aceasta linie de cod:
TRACE0("\n CCustomEdit::OnGetDlgCode");
UINT nDefDlgCode = CEdit::OnGetDlgCode(); // default value
UINT nCustomDlgCode = nDefDlgCode | DLGC_WANTALLKEYS; // wants all keys
imi zice :
probdlg.cpp(380): error C2248: 'CWnd::OnGetDlgCode' : cannot access protected member declared in class 'CWnd'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(3016) : see declaration of 'CWnd::OnGetDlgCode'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(2273) : see declaration of 'CWnd'
probdlg.cpp(380): error C2352: 'CWnd::OnGetDlgCode' : illegal call of non-static member function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(3016) : see declaration of 'CWnd::OnGetDlgCode'
Eroarea este la CEdit:: ....