I have a unmanaged dll (C++) which I can't change.
How can I get result of STDOUT from this dll to my C# GUI project ?
for example DLL have void like this:
__declspec(dllexport) void PrintMsg();
void PrintMsg()
{
cout << "Some text" << endl ;
}
I find this solution Redirect stdout+stderr on a C# Windows service , but all redirected data write to file, I need recive stdout without save to output file, the best option get output in a variable.
If possible, tell me how.
Thanks.