result if a process fails to start
Posted: Mon Mar 30, 2009 7:07 pm
I am trying to use NewProcess and my executable is failing to launch. How can I check to see what went wrong?
The old way I would use something like:
H := WinExec(PChar(t+#32+szfile), lpici.nShow);
if H < 32 then
MessageBox(lpici.hWnd, pchar(syserrormessage(h)), 'Error',
MB_ICONERROR or MB_OK);
The old way I would use something like:
H := WinExec(PChar(t+#32+szfile), lpici.nShow);
if H < 32 then
MessageBox(lpici.hWnd, pchar(syserrormessage(h)), 'Error',
MB_ICONERROR or MB_OK);