delphi package - easy access to kernel objects etc.
-
digitaldoom
- Posts: 10
- Joined: Fri Aug 18, 2006 2:36 am
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',
MB_ICONERROR or MB_OK);
-
madshi
- 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".