Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 16717, Controlling processes in Kylix

by Marcelo Lopez Ruiz Email: Anonymous


A demo project that sends input and retrieves output from another process.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 1.0 185 downloads
Copyright: No significant restrictions


Size: 5,294 bytes
Updated on Mon, 15 Oct 2001 06:31:28 GMT
Originally uploaded on Mon, 15 Oct 2001 06:49:18 GMT
SHA1 Hash: 9D16E5856CC9456515BAAFE24828DF2F76450F01
MD5 Hash: 5467B5FEF584133247509F50CC51872C

    Explore the files in this upload

Description
This demo shows how to create a new process and pass it some input. It will also read the output of the process, and then turn this output into a TClientDataSet.

There are three interesting routines which you will probably want to reuse.

procedure ExecuteProcess(const CommandLine: string;
Parameters, InputLines, OutputLines: TStrings);

This is used to execute another process, and control its I/O.

procedure StringsTableToDataSet(Strings: TStrings;
DataSet: TDataSet; FieldNames: array of string;
FieldLengths, FieldOffsets: array of Integer); overload;

This is used to turn the load the project output into a TDataSet.

procedure StringsTableToDataSet(Strings: TStrings;
DataSet: TDataSet; FieldNames: array of string;
FieldLengths: array of Integer); overload;

This is similar to the previous routine, but it assumes all fields are one after the other and computes the offsets accordingly.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03