Hi,
I have a application in C++ that uses librairies that print on std::out and std::err (like embbeding python (PyErr_Print())) and I can't find a solution to catch what it's printed. I search for a while but nothing of what I found work.
Do someone has a solution ?
Regards
Display std::out and std::err Topic is solved
Re: Display std::out and std::err
What did you try so far? I expect the first was this
https://docs.wxwidgets.org/trunk/classw ... ector.html
Obviously, among else, this assumes that the output happens in the same process.
I am not familiar with embedding Python and such, so the obvious question is: Is there no way to tell the library to use a different output / redirect it? If there is not, it would seem quite a flaw for a Windows library...
https://docs.wxwidgets.org/trunk/classw ... ector.html
Obviously, among else, this assumes that the output happens in the same process.
I am not familiar with embedding Python and such, so the obvious question is: Is there no way to tell the library to use a different output / redirect it? If there is not, it would seem quite a flaw for a Windows library...
Re: Display std::out and std::err
Hi,
Sorry for the late response. I tried the solution proposed there : https://stackoverflow.com/questions/481 ... ing-stdout
I was looking for a more global scope solution but I will try that.
Thanks
Sorry for the late response. I tried the solution proposed there : https://stackoverflow.com/questions/481 ... ing-stdout
I was looking for a more global scope solution but I will try that.
Thanks