Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print to console/log in Visual Studio 11 in C++ in a Metro app?

I am attempting to figure out how to print to the debugger console/log in a Visual Studio 11 C++ Metro app. I have tried a number of methods to print to the log in a C++ Metro application (cout, Windows.System.Diagnostics, the documentation on MSDN and the Metro development site).

How do I print to the console?

like image 721
AetherMass Avatar asked Feb 02 '12 01:02

AetherMass


1 Answers

OutputDebugString:

Sends a string to the debugger for display.

Some of the Windows API is usable from a Metro style app, including this function. You can find a list of other diagnostic-related Windows API functions available from Metro style apps on the Windows Dev Center.

like image 120
James McNellis Avatar answered Oct 22 '22 03:10

James McNellis