Running a C/C++ console application inside a C# windowed one?

前提是你 提交于 2020-01-13 04:49:07

问题


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?


回答1:


Start the C++ process using the Process class, and use Process.StandardOutput and Process.StandardInput to pass data back and forth.



来源:https://stackoverflow.com/questions/2269706/running-a-c-c-console-application-inside-a-c-sharp-windowed-one

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!