Page 1 of 1

result if a process fails to start

Posted: Mon Mar 30, 2009 7:07 pm
by digitaldoom
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);

Posted: Thu Apr 23, 2009 11:56 am
by madshi
How does your "NewProcess" code look like? You can ask the return interface instance about "LastErrorStr".