hey I am using listboxes and fgetc to add a comma delimited string to my listbox but I am always getting segmentation faults, here is the code (please help I am almost done with this app).
hwndlistbox = CreateWindow(TEXT("Listbox"), NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_MULTILINE,
50, 70, 170, 140, hwnd, (HMENU) ID_EDIT,
pfile = fopen("C:\\reminder\\data\\backup1.xls", "r");
while( (buff1 = fgetc(pfile)) != EOF)
/* filter out unwanted characters*/
SendMessage(hwndlistbox, LB_ADDSTRING, 0, (LPARAM)buff1);