Link to home
Start Free TrialLog in
Avatar of GaryHandley
GaryHandley

asked on

Returning an error code from a command-line driven program

Hi, I have written a simple exe that the user calls from the command line with various parameters. I can display messages if things go wrong, but some customers want error codes returned so that they can integrate it into their applications. But I am unsure how to do this. This is a windows application written in Delphi 7. I want to return a 0 or 1 etc.

Many thanks.
Gary
ASKER CERTIFIED SOLUTION
Avatar of atul_parmar
atul_parmar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GaryHandley
GaryHandley

ASKER

Many thanks, I knew it had to be something simple, but it was eluding me :-) Both solutions are useful, thanks.