Search results for 'exit()'. 1 post(s) found.

  1. 2009/07/02 How to return exit code such as exit() function in C/C++ ?
2009/07/02 17:12

How to return exit code such as exit() function in C/C++ ?


You can return Exit Code in delphi by following method:

var
  i : Integer;
begin
  // Set up an error address so that halt shows a termination dialog
  ErrorAddr := Addr(i);

  // Set the program Exit Code
  ExitCode := 8;
end;


As you can see above, you can set Exit Code by ExitCode variable. That is global variable indicating Exit Code.
Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.