if you use MFC a simple syntaxe is GetDlgItemText or SetDlgItemText.

use GetGlgItemText(HWND hwnd,LPSTR lpTitre, int nMax) to read a value;

ie:

char buf[10];

memset(&buf,0,sizeof(buf));

sprintf(buf,"coucou"

GetDlgItemText(IDC_EDIT1, buf,sizeof(buf));

use the same syntax with SetDlgItemText to put a value in the CEDIT.


best regards.