I've tried like 100 different ways but I can't figure this out. I need each of these variables initialized and defined before they are used. Here is the bit of code:
int i, a;
char etxt[100];
HWND hwndListBox = GetDlgItem(hEdit, IDC_LIST);
i = SendMessage(hwndListBox, LB_GETCOUNT, 0, 0); //gets the number of items in listbox
for (a=0; a<i; a++)
{
SendMessage(hwndListBox, LB_GETTEXT, a, etxt[a]); //get all text
}
HWND hEdit = GetDlgItem(hwnd, etxt[a]);
SaveTextFileFromListBox(hEdit, szFileName);