Im trying to take different values of type DWORD, HWND and add them to a listbox. However everytime i try to run the program it runs but locks down the computer and it does not work. What am i doing wrong?
Code:char *buf;
//Returns a DWORD
processID = startup();
buf = (char*)GlobalAlloc(GPTR, 50);
itoa(processID, buf, 10);
index = SendDlgItemMessage(hwnd, IDC_LIST, LB_ADDSTRING, 0, (LPARAM)buf);