I am trying to update a program written in 1995 using pascal or c. I am not sure about the programming language. Command line program. Now I am encoded in C #. And I want to read the exit from the children's program. Is it possible?
I tried something. But failed. It:
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "asdd.exe";
p.Start();
logs.AppendText("Timer Started\n");
timer1.Enabled = true;
}
private void timer1_Tick(object sender, EventArgs e)
{
}
private void p_Exited(object sender, EventArgs e)
{
timer1.Enabled = false;
}
I am open to any ideas in java, cpp, c or C #.
Edit:
For instance:
My source code for asdd.exe
#include<stdio.h>
int main(){
printf("something\n");
printf("something, too\n");
}
This C # softkey and richTextBox logs are added using:
something
something, too
source
share