How to write to the Output window in Visual Studio?

前端 未结 7 2035
小鲜肉
小鲜肉 2021-01-30 02:39

Which function should I use to output text to the \"Output\" window in Visual Studio?

I tried printf() but it doesn\'t show up.

7条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 03:35

    #define WIN32_LEAN_AND_MEAN
    #include 
    
    wstring outputMe = L"can" + L" concatenate\n";
    OutputDebugString(outputMe.c_str());
    

提交回复
热议问题