Recent

Author Topic: How can I give a value back to program that start me?  (Read 4465 times)

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
How can I give a value back to program that start me?
« on: November 03, 2009, 03:10:01 pm »
Hello,

how can I give a value back to program that start me? A simple string is enough or a errorlevel in pure FPC code.

Thank you very much...
Programmer Software and other copy protection tools.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: How can I give a value back to program that start me?
« Reply #1 on: November 03, 2009, 04:05:01 pm »
Do you mean like this?

WriteLn('response');
or
WriteLn(StdErr,'error');

Fred556

  • New Member
  • *
  • Posts: 26
    • Copy Protection Software
Re: How can I give a value back to program that start me?
« Reply #2 on: November 03, 2009, 04:14:37 pm »
Hello,

thank you for your replay. I mean on Linux and way Win32.

When a other program start my program. How can I give the other program information back?
Programmer Software and other copy protection tools.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2648
Re: How can I give a value back to program that start me?
« Reply #3 on: November 03, 2009, 11:41:25 pm »
you can also assign a value the the ExitCode variable. This is the same as the DOS errorlevel
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018