Running a c++ exe inside a C# application Problem
I have a c++ exe that I am trying to run in a C# project. Every time I try it the console opens up with the output and is not outputted to the panel as desired. This works if I use another exe created in C#.
Is this even possible using a C++ exe or am I missing something?
开发者_如何学Gocheers
my code: http://pastebin.com/n1vXsknB
Console applications have the option of creating and writing to the console instead of their output streams. In this case, there's nothing you can do, short of hooking using Detours.
If you can change the C++ program, then you can make it use its output streams instead of the console.
精彩评论