Code:
char* t_rec;
int len = GetWindowTextLength(GetDlgItem(hwnd,1000));
t_rec = (char*)GlobalAlloc(GPTR,len + 1);
GetDlgItemText(hwnd,1000,t_rec,len + 1);
MessageBox(hwnd, t_rec, "Warning", MB_OK);
char* t_rec;
int len = GetWindowTextLength(GetDlgItem(hwnd,1000));
t_rec = (char*)GlobalAlloc(GPTR,len + 1);
GetDlgItemText(hwnd,1000,t_rec,len + 1);
MessageBox(hwnd, t_rec, "Warning", MB_OK);
I pitam se zasto je poruka uvek prazna ?
A drugo pitanje je zasto ne mogu da koristim imena kao sto su IDC_EDIT1 nego moram da stavljam brojeve ?
Koristim VisualStudio 6.00
tnx