item.mask = LVIF_TEXT;
item.iItem = ListView_GetItemCount(GetDlgItem(hWnd, IDC_LIST1));
item.pszText = data;
ListView_InsertItem(GetDlgItem(hWnd, IDC_LIST1), &item);
Ok, that is what I have. And yes, the hWnd is entered right, I know this.. because I tested it with a MessageBox. now... data, DOES have text in it. The following line works:
It shows up on the dialog box, with the correct data that I want to place in the ListView. The list view IS called IDC_LIST1, but this doesn't work!!! ListView_InsertItem does not work... and I do not know why. Can anyone assist me please! Thank you.