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).
Code:hwndlistbox = CreateWindow(TEXT("Listbox"), NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_MULTILINE, 50, 70, 170, 140, hwnd, (HMENU) ID_EDIT, NULL, NULL); char buff1; pfile = fopen("C:\\reminder\\data\\backup1.xls", "r"); atoi(&buff1) while( (buff1 = fgetc(pfile)) != EOF) { /* filter out unwanted characters*/ SendMessage(hwndlistbox, LB_ADDSTRING, 0, (LPARAM)buff1); }



LinkBack URL
About LinkBacks



