现在,我想开发一个简单的应用程序,所以我决定最快的代码方式将是C#.NET,但现在,我很难实现我需要的功能之一。 / p>
我想做的是在我的C#应用程序的窗口中运行一个C / C ++控制台应用程序,就像在Unreal Frontend中添加一些方法通信,这样我可以给控制台应用程序输入 scanf()和std :: sin 。
任何人都可以指向正确的方向?
解决方案使用流程类,并使用 Process.StandardOutput 和 Process.StandardInput 来传递数据。
Right now, I want to develop a simple application, so I decided that the fastest way to code would be C#.NET, but right now, I'm having a hard time to implement one of the features I need.
What I'm trying to do, is to run a C/C++ console application inside the window of my C# application, like in Unreal Frontend with the little addition of to way communication, so that I can give the console application input for scanf() and std::sin. And what control should I user to display and get the data?
Can anyone point me into the right direction?
解决方案Start the C++ process using the Process class, and use Process.StandardOutput and Process.StandardInput to pass data back and forth.
更多推荐
在C#窗口中运行C / C ++控制台应用程序?
发布评论