Hook the printf outputs

Markus Forrer 21 Reputation points
2021-04-17T09:22:09.84+00:00

I want to get the printf outputs of a foreign C++ dll in my C# application. Is there a way to install a hook?

The foreign c++ dll is encapsulated via my own C++ dll (interface C++ -> C#). I tried to overwrite printf there - unfortunately without success.

Thank you for any hints.

Developer technologies C++
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.