Hello! A friend of me wants to write a program which uses a GUI frontend and a "backend", which actually does the work. The reason is that the backend shall also be usable from the command line, without any GUI, to make it working on more platforms without having to make changes on it. So it will be the best to compile it in FPC for the related OS, with a minimum of OS dependices.
My idea is to write the backend in FPC. It shall only use StdIn/StdOut and also parse its command line options. The Frontend shall be - in a first step - be written in Delphi or Lazarus, but because I ask here for a friend who currently uses Delphi, this would be preferred. My question is: Can somebody show me a little sample program for that? It will be enough (for the Delphi-part) to open a window with a textbox and a button. When the button is clicked, the backend shall be loaded, some text be piped into it, and that what comes out from the backend's stdout shall be displayed in the textbox. Nothing more. The backend may be a plain FPC program (no delphi), reading from StdIn, making i.e. everything to UpperCase, then write this out to its StdOut. If somebody, please, could show me how this is done in Windows, please? mfg Ing. Rainer Hantsch _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal