Programming in visual c++. I got a editbox and a button on a form.
when i press the button, the editbox gets filled with files and directorys.
here is my code
Code:HANDLE hFind; WIN32_FIND_DATA data; hFind = FindFirstFile("*.*", &data); if (hFind != INVALID_HANDLE_VALUE) { do { GetDlgItem( testing )->SetWindowText( data.cFileName ); }while(FindNextFile(hFind, &data)); }
i only get 1 item in the edit box..
check the picture...