Getting Text from Seperate Dialog
-
Hey, I am trying to get text from a combo box in a different dialog, and how I did it I get an error. Here is how I did it.
CDialog1::m_minCHO.GetWindowText(sText196);
CDialog1 is the class, and the m_minCHO is the control combo box variable. Here is the error C:\DEP\DEPDlg.cpp(18122) : error C2228: left of '.GetWindowTextA' must have class/struct/union type Any help would be great thanks -
Hey, I am trying to get text from a combo box in a different dialog, and how I did it I get an error. Here is how I did it.
CDialog1::m_minCHO.GetWindowText(sText196);
CDialog1 is the class, and the m_minCHO is the control combo box variable. Here is the error C:\DEP\DEPDlg.cpp(18122) : error C2228: left of '.GetWindowTextA' must have class/struct/union type Any help would be great thanksCDialog1
is the name of the dialog class. To call a method of that class, you must have a variable of that class available.
Software Zen:
delete this;
-
Hey, I am trying to get text from a combo box in a different dialog, and how I did it I get an error. Here is how I did it.
CDialog1::m_minCHO.GetWindowText(sText196);
CDialog1 is the class, and the m_minCHO is the control combo box variable. Here is the error C:\DEP\DEPDlg.cpp(18122) : error C2228: left of '.GetWindowTextA' must have class/struct/union type Any help would be great thanksIs the different dialog, a dialog of a different application? If it isnt so, does this help?
CWnd::GetDlgItemText int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const; int GetDlgItemText( int nID, CString& rString ) const;
...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs