I'm creatin application(C#) that need run another app. This. app is game(C++,Directx7,GDI, I don't have source) that show console window for debugging from dll(static). For show console window this dll has this lines:
AllocConsole();
freopen("CONIN$","rb",stdin);
freopen("CONOUT$","wb",stdout);
freopen("CONOUT$","wb",stderr);
In my c# app. i want hide console window and redirect text from console window to textbox. For hide console window i'm using winapi FindWindow, ShowWindow is not problem. But how i can redirect text(output) from console window to textbox?