locked
Why Console::WriteLine doesn't write anything? RRS feed

  • Question

  • Hi there,

     

    I'm currently struggling with the new Windows Debugger and although I've finally realized that all the .pdb files were initially missing and I've downloaded them from the Microsoft Symbols Server I'm unfortunately still unavailable to get anything human-readable from a breakpoint.

     

    Therefore I've decided to take the newbie way and to print some lines here and there in the console hoping that the actual error will be displayed somehow. Unfortunately despite all my effort, I'm unable to print anything in the console by using Console::WriteLine("Hello World!").

    What a pity right? But I let my pride away on my desk and this is why I'm asking you why the hell on earth is this simple thing doesn't seem to work?

     

    Cheers :)

    Wednesday, November 30, 2011 9:11 AM

All replies

  • I am not on Windows 8 at the moment, so I can't test this out. But how did you even get that to compile? That's a .NET class. C++/WinRT is native. I assume there is some kind of COM-interop that's automatically applied, but even so that's not the best way to do this. Use C++ mechanisms to print to the console (std::cout).
    http://blog.voidnish.com
    Wednesday, November 30, 2011 2:19 PM