diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/HandBrakeCS.suo | bin | 31744 -> 32256 bytes | |||
-rw-r--r-- | win/C#/frmReadDVD.cs | 13 |
2 files changed, 8 insertions, 5 deletions
diff --git a/win/C#/HandBrakeCS.suo b/win/C#/HandBrakeCS.suo Binary files differindex 39b870b7d..7c13520b0 100644 --- a/win/C#/HandBrakeCS.suo +++ b/win/C#/HandBrakeCS.suo diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index d861e8ead..ca70a6ba1 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -32,18 +32,21 @@ namespace Handbrake hbProc.StartInfo.FileName = "hbcli.exe";
hbProc.StartInfo.RedirectStandardOutput = true;
hbProc.StartInfo.RedirectStandardError = true;
- hbProc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
- hbProc.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
+ //hbProc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
+ //hbProc.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
hbProc.StartInfo.Arguments = query;
hbProc.StartInfo.UseShellExecute = false;
hbProc.Start();
+ rtf_dvdInfo.Text = "-- Start --";
while (hbProc.StandardOutput.BaseStream.CanRead && !hbProc.HasExited)
{
- MessageBox.Show(hbProc.StandardOutput.ReadLine());
- MessageBox.Show(hbProc.StandardError.ReadLine());
- Console.Read();
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardOutput.ReadLine();
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardError.ReadLine();
+ MessageBox.Show("Test");
}
+
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + "-- End --";
}
private void btn_ok_Click(object sender, EventArgs e)
|