I don't know Dennis, but shouldn't you use delete after new?
not sure, so I want to knowPHP Code:HWND hwnd;
int len;
char * text;
hwnd = GetDlgItem(hwnd_of_parent_dialog_box, ID_OF_THE_ITEM);
len = GetWindowTextLength(hwnd) + 1;
text = new char[len];
GetWindowText(hwnd, text, len);
delete [] text;
![]()




Reply With Quote