Board index » delphi » HOW TO: Forward the output of a command line program to an Delphi Component

HOW TO: Forward the output of a command line program to an Delphi Component

Hi there!

My problem is roughly described in the subject, but again:

I'd like to forward the output of a command line program to a Delphi
Component like TStringlist, TMemo or TRichEdit, or one of the others. Just
print out the lines in the moment they are coming from the command line.
I thought about getting the Windows Handle of the dosbox that opens while
running the Process, but

1. how to get it in that short time the dowbox is open.
2. what should I do with it to be able to write the new line into one of the
Text Components of Delphi

(4 if it is important )

regards and thanks for helping

Bernhard!

 

Re:HOW TO: Forward the output of a command line program to an Delphi Component


Hi Bernhard,

Quote
"Bernhard Gr?uler" <bernh...@graeuler.de> wrote in message news:8ufjjr$1p1m5$1@ID-49408.news.dfncis.de...
> Hi there!

> My problem is roughly described in the subject, but again:

> I'd like to forward the output of a command line program to a Delphi
> Component like TStringlist, TMemo or TRichEdit, or one of the others. Just
> print out the lines in the moment they are coming from the command line.
> I thought about getting the Windows Handle of the dosbox that opens while
> running the Process, but

Go to www.lischke-online.de/DCG.html and download the sources of DCG. This project contains a compile dialog which calls
dcc32 (the command line compiler) and redirects all its output to the application.

Ciao, Mike

Other Threads