i'm now using Visual c++ in Visual Studio 2005 for my project. i faced problem in getting other tab value in main tab ..Below are details of my problem.
In the main tab control(CTabDialogControl), i have another sub tab . IDD_MACHINE is my other dialog ID while the CTabFourthDialog is this tab class name.. and IDD_EDITMCNO is a edit control in this tab, IDD_EDITMCNO passing value to a variable called m_McNo.
Code:
DDX_Control(pDX, IDC_EDITMCNO, m_McNo)
When i retrieved value from IDC_EDITMCNO within CTabFourthDialog, below statement can work properly:
Code:
CString sMachNo; m_McNo.GetWindowText(sMachNo);
Code:
CString sMachNo; CTabFourthDialog::m_McNo.GetWindowText(sMachNo)
Quote:
Error1 error C2228: left of '.GetWindowTextA' must have class/struct/union.
Your help i will very appreciate..
Thanks very much
Regards
Alice
