Posted by Wyatt (76.77.164.x) on August 20 2019, 11:29pm:
Wow! Thanks! One more question. I have the function void wnd_printf(const TCHAR *str) { if (!*str) return; HWND hLog = GetDlgItem(g_hwnd, IDC_EDIT1); SendMessage(hLog, EM_SETSEL, 0x7fffffff, -1); SendMessage(hLog, EM_REPLACESEL, false, (LPARAM)str); } that prints the output to IDC_EDIT1. I'm not sure how to receive the output in realtime. I got it to work with a thread, but I can't get any text back until the process in finished. DWORD WINAPI ThreadProc(LPVOID p) // thread that will start &
Posted by Wyat (76.77.164.x) on August 20 2019, 11:31pm:
Ran out of room. last part is. DWORD WINAPI ThreadProc(LPVOID p) // thread that will start & monitor cdrecord { ExecProcess("cdrecord.exe -v dev=0,1,0 -sao -dummy -text -eject cuefile=Image.cue", 0); PostMessage(g_hwnd, WM_NOTIFY, 0, 0); return 0; }