locked
How to write debug message to output window from c++ winRT component?

    Question

  • I have a c# metro style app referencing a c++ WinRT component. I am trying to print out some debug information to the output window from within c++ component but don't know how to do it. Can anybody help me out?

    Thank you,

    Thursday, August 23, 2012 1:08 AM

Answers

  • I got it. I need to set Debugger type to "mixed" in project properties "Debug" tab.

    Thanks

    • Marked as answer by Jesse Jiang Friday, August 24, 2012 3:18 AM
    Thursday, August 23, 2012 5:53 PM
  • I think you can use the function OutputDebugString
    • Marked as answer by Jesse Jiang Friday, August 24, 2012 3:18 AM
    Thursday, August 23, 2012 1:42 AM

All replies

  • I think you can use the function OutputDebugString
    • Marked as answer by Jesse Jiang Friday, August 24, 2012 3:18 AM
    Thursday, August 23, 2012 1:42 AM
  • No. I already tried it. It doesn't work.
    Thursday, August 23, 2012 5:09 PM
  • I got it. I need to set Debugger type to "mixed" in project properties "Debug" tab.

    Thanks

    • Marked as answer by Jesse Jiang Friday, August 24, 2012 3:18 AM
    Thursday, August 23, 2012 5:53 PM
  • How can we display a debug output message if only Managed debugger is active?  Is there a function that forces output to the managed debugger output?
    Friday, November 16, 2012 5:41 PM