srinath duraisamy wrote:
Is there any way to catch the return value of the main program?
That's OS-dependent. Your debugger should be able to tell you, or
the OS can have a mechanism similar to DOS' "errorlevel", or you
could execute the process (using whatever means your OS provides)
and that should have the ability to capture the return value of
the process when it exits (that's how the debugger does it, BTW).
You need to ask in the newsgroup for your OS (or just RTFM).
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask