I have a lot of old Delphi console applications. They expect after an output with a question an answer (string with cr.). A c# windows form application calls these old Delphi.exe and redirect the StandardOutput and Input to a richTextBox. The output is displyeb blocks of 128 or 380 characters in the richTextBox. So I don't get the question to answer. I tried a lot an found out that if I write it in C# the output is coming complete and is as I expect. My question is, why is the Delphi.exe acting different to a c#.exe and what do I have to change in the Delphi application, that I get the whole text of the question into the richTextBox before I have to answer it? my Code: ---------------------------- program EA_ET (A);{$APPTYPE CONSOLE}uses Windows; VAR Key_Pressed : BOOLEAN; BEGIN { EAET MAIN } Key_Pressed := false; WRITELN (' !!! ===>>> Anzahl Parameter stimmt nicht'); WRITELN (' Beispiel: EAET t T 1 1 T'); WRITELN ('123456789 123456789 123456789 123456789'); WRITELN ('123456789 123456789 123456789 123456789 123456789 '); WRITELN (' Weiter (b) mit --> "Enter"'); REPEAT if (getkeystate(VK_SPACE) > Anzahl Parameter stimmt nicht Beispiel: EAET t T 1 1 T123456789 123456789 123456789 123456789 expected result:--------------------------------- !!! ===>>> Anzahl Parameter stimmt nicht Beispiel: EAET t T 1 1 T123456789 123456789 123456789 123456789123456789 123456789 123456789 123456789 123456789 Weiter (b) mit --> "Enter"
↧