在C#窗口中运行C / C ++控制台应用程序?

编程入门 行业动态 更新时间:2024-10-28 14:27:22
本文介绍了在C#窗口中运行C / C ++控制台应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

现在,我想开发一个简单的应用程序,所以我决定最快的代码方式将是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 ++控制台应用程序?

本文发布于:2023-11-06 17:54:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564391.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   应用程序   窗口中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!