Funky
Funky

Reputation: 13608

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?

cheers

my code: http://pastebin.com/n1vXsknB

Upvotes: 0

Views: 396

Answers (1)

Stephen Cleary
Stephen Cleary

Reputation: 457472

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.

Upvotes: 2

Related Questions