How to write to console/log in VC++ in a Metro app?

microsoft-metro, visual-c++, windows-8

Solution

A metro style app cannot have a console. You can use OutputDebugString() in a C++/CXX app to display debug text on the Visual Studio Output window, just like System.Diagnostics.Debug.Write does in a managed app. There are not a lot of approved winapi functions but OutputDebugString() is okay. Starting MSDN page is here.

Problem

i am working on vc++ application ,in this application How to write to console/log? c# ----system.diagnostics.debug.writeline("Hello"); similar to Vc++ ----?

Original source