Mormishka, вывод в textbox быдлогуя:
| Код | int _tmain(int argc, _TCHAR* argv[]) { std::cout << "Hello world!!!" << std::endl; return 0; }
|
| Код | var dlg = new OpenFileDialog(); dlg.Filter = "*.exe|*.exe"; if (dlg.ShowDialog() == DialogResult.OK) { var process = new Process(); process.StartInfo.FileName = dlg.FileName; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = false; process.Start(); StreamReader read = process.StandardOutput; txtView.AppendText(read.ReadToEnd() + Environment.NewLine); read.Close(); }
|
|