Once again CEdit in a UNICODE project give me problems:
I'm using a CEdit Control like this
CEdit m_cEdit; // in the dialog .h file
m_cEdit.SubclassDlgItem( IDC_EDIT2, this ); in the OnInitDialog()
If I type 1234 in the edit control and then use the following code:
AfxMessageBox(s); // nothing displays it's blank.
If I highlight the string and Right Click / Copy then Paste it into Notepad the pasted value is 1234
The project is a UNICODE project. I have no problem viewing strings in the Debugger after setting Tools /Options / Display unicode strings.
Now the problem is gettting a string froma CEdit control &^%&^% I'm having doubts about UNICODE and MFC !
So how do I get a string from a CEdit control ?