delphi package - easy access to kernel objects etc.
- Posts: 10
- Joined: Fri Aug 18, 2006 2:36 am
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);
- Site Admin
- Posts: 10528
- Joined: Sun Mar 21, 2004 5:25 pm
How does your "NewProcess" code look like? You can ask the return interface instance about "LastErrorStr".