result if a process fails to start

delphi package - easy access to kernel objects etc.

result if a process fails to start

Postby digitaldoom » 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',
Posts: 10
Joined: Fri Aug 18, 2006 2:36 am

Postby madshi » Thu Apr 23, 2009 11:56 am

How does your "NewProcess" code look like? You can ask the return interface instance about "LastErrorStr".
Site Admin
Posts: 9265
Joined: Sun Mar 21, 2004 5:25 pm

Return to madKernel

Who is online

Users browsing this forum: No registered users and 1 guest