OpenCV console debug in Windows application

I am building a DLL library that uses OpenCV 2.3. I am using this DLL in windowed application projects. I would like to see the debug information that OpenCV sends to the console (printf or cout, I don't know) when it throws an exception. How can I see the console output of OpenCV in an application started with WinMain?

It's kind of the opposite of this question Run OpenCV application without console window.

Answers


I'm not sure what OpenCV uses.

You can try Mark Russinovich's DebugView for debug output(OutputDebugString). If you just want to redirect console output, take a look at this question.


Need Your Help

Android wallpaper got stretched

android wallpaper

My screen size is 600px * 800px.

Convert my generator to a generator comprehension

python python-3.x list-comprehension

A question for the functional programming ninjas. Here's my generator:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.