Hi, i'm having problems getting the text from an edit box. I have a splitter window with two windows. My editbox is on one window and i want to get the text from it and send it to my second window. I have tried the option below but it gives me an error when the program starts.
CWnd* pWnd = GetDlgItem(IDD_EDIT1);
CString Tester;
pWnd->GetWindowText(Tester);

I'm using Doc/view arc , and the Editbox does not belong to the view that is calling for the text, is there another way to do this. I also tried the selection below and it gave me a blank string.

GetDlgItemText(IDD_EDIT,Tester);