I'm developing a program using Lazarus, that execute gcc:
var
AProcess: TProcess;
begin
if SaveDialog1.Execute then
AProcess := TProcess.Create(nil);
AProcess.CommandLine := 'gcc.exe ' + SaveDialog1.FileName + ' -o ' TextField23.Text;
AProcess.Options := AProcess.Options + [poWaitOnExit, poUsePipes];
AProcess.Execute;
AProcess.Free;
end;
But I want to display the log(output) of gcc on another Form(OutputForm
), that have only a TMemo(OutputMemo
).
How can I do it?