Hey ive been trying to do this simple operation for the last hour and i still can't get it to work
I have an edit box and a OK button when the user enters some text and clicks OK, i wan't to display the text
I added a member variable called m_strGet type CString
Code:
// This is my add member variable CString m_strGet;
// My edit box is called IDC_EDIT_TEXTBOX
void CSimpleDlg::OnGet()
{
UpdateData();
if(m_strGet.IsEmpty() == FALSE){
messageBox(m_strGet);
}
UpdateData(FALSE);
}
It should compile but it doesn't, i get an error saying m_strGet is undefined, but i declared it public with class wizard
Marky_Mark