I'm using Visual C++ 4.
How do I make an editbox display text or a string variable.
Printable View
I'm using Visual C++ 4.
How do I make an editbox display text or a string variable.
if 4 works like 5&6, then....
CString teststr = "hello world";
//where teststr is the member variable to the control//
UpdateData(false);
CEdit edit1;
.....
edit1.SetWindowText( "hello, edit" );
CString str1( "my string" );
edit1.SetWindowText( str1 );
Sally