result if a process fails to start

delphi package - easy access to kernel objects etc.
Post Reply
Posts: 10
Joined: Fri Aug 18, 2006 2:36 am

result if a process fails to start

Post 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',
Site Admin
Posts: 10665
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

How does your "NewProcess" code look like? You can ask the return interface instance about "LastErrorStr".
Post Reply