久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <i id='azX51'><tr id='azX51'><dt id='azX51'><q id='azX51'><span id='azX51'><b id='azX51'><form id='azX51'><ins id='azX51'></ins><ul id='azX51'></ul><sub id='azX51'></sub></form><legend id='azX51'></legend><bdo id='azX51'><pre id='azX51'><center id='azX51'></center></pre></bdo></b><th id='azX51'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='azX51'><tfoot id='azX51'></tfoot><dl id='azX51'><fieldset id='azX51'></fieldset></dl></div>

    <small id='azX51'></small><noframes id='azX51'>

  2. <legend id='azX51'><style id='azX51'><dir id='azX51'><q id='azX51'></q></dir></style></legend>
      • <bdo id='azX51'></bdo><ul id='azX51'></ul>

      <tfoot id='azX51'></tfoot>

      如何打印到 Win32 應用程序中的調試輸出窗口?

      How do I print to the debug output window in a Win32 app?(如何打印到 Win32 應用程序中的調試輸出窗口?)
        <bdo id='IzhFE'></bdo><ul id='IzhFE'></ul>

        <small id='IzhFE'></small><noframes id='IzhFE'>

          <tbody id='IzhFE'></tbody>
        <legend id='IzhFE'><style id='IzhFE'><dir id='IzhFE'><q id='IzhFE'></q></dir></style></legend><tfoot id='IzhFE'></tfoot>

          <i id='IzhFE'><tr id='IzhFE'><dt id='IzhFE'><q id='IzhFE'><span id='IzhFE'><b id='IzhFE'><form id='IzhFE'><ins id='IzhFE'></ins><ul id='IzhFE'></ul><sub id='IzhFE'></sub></form><legend id='IzhFE'></legend><bdo id='IzhFE'><pre id='IzhFE'><center id='IzhFE'></center></pre></bdo></b><th id='IzhFE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IzhFE'><tfoot id='IzhFE'></tfoot><dl id='IzhFE'><fieldset id='IzhFE'></fieldset></dl></div>

              1. 本文介紹了如何打印到 Win32 應用程序中的調試輸出窗口?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有一個已加載到 Visual Studio 2005 中的 win32 項目.我希望能夠將內容打印到 Visual Studio 輸出窗口,但我終生無法弄清楚如何.我試過 'printf' 和 'cout <<'但我的消息頑固地沒有打印出來.

                I've got a win32 project that I've loaded into Visual Studio 2005. I'd like to be able to print things to the Visual Studio output window, but I can't for the life of me work out how. I've tried 'printf' and 'cout <<' but my messages stay stubbornly unprinted.

                是否有某種特殊的方式可以打印到 Visual Studio 輸出窗口?

                Is there some sort of special way to print to the Visual Studio output window?

                推薦答案

                您可以使用 OutputDebugString.OutputDebugString 是一個宏,根據您的構建選項映射到 OutputDebugStringA(char const*)OutputDebugStringW(wchar_t const*).在后一種情況下,您必須為該函數提供一個寬字符串.要創建寬字符文字,您可以使用 L 前綴:

                You can use OutputDebugString. OutputDebugString is a macro that depending on your build options either maps to OutputDebugStringA(char const*) or OutputDebugStringW(wchar_t const*). In the later case you will have to supply a wide character string to the function. To create a wide character literal you can use the L prefix:

                OutputDebugStringW(L"My output string.");
                

                通常,您會像這樣將宏版本與 _T 宏一起使用:

                Normally you will use the macro version together with the _T macro like this:

                OutputDebugString(_T("My output string."));
                

                如果您的項目配置為為 UNICODE 構建,它將擴展為:

                If you project is configured to build for UNICODE it will expand into:

                OutputDebugStringW(L"My output string.");
                

                如果您不是為 UNICODE 構建,它將擴展為:

                If you are not building for UNICODE it will expand into:

                OutputDebugStringA("My output string.");
                

                這篇關于如何打印到 Win32 應用程序中的調試輸出窗口?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                In what ways do C++ exceptions slow down code when there are no exceptions thown?(當沒有異常時,C++ 異常會以何種方式減慢代碼速度?)
                Why catch an exception as reference-to-const?(為什么要捕獲異常作為對 const 的引用?)
                When and how should I use exception handling?(我應該何時以及如何使用異常處理?)
                Scope of exception object in C++(C++中異常對象的范圍)
                Catching exceptions from a constructor#39;s initializer list(從構造函數的初始化列表中捕獲異常)
                Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 說明符 C++11 noexcept 之間的區別)

                      <i id='c7jsE'><tr id='c7jsE'><dt id='c7jsE'><q id='c7jsE'><span id='c7jsE'><b id='c7jsE'><form id='c7jsE'><ins id='c7jsE'></ins><ul id='c7jsE'></ul><sub id='c7jsE'></sub></form><legend id='c7jsE'></legend><bdo id='c7jsE'><pre id='c7jsE'><center id='c7jsE'></center></pre></bdo></b><th id='c7jsE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='c7jsE'><tfoot id='c7jsE'></tfoot><dl id='c7jsE'><fieldset id='c7jsE'></fieldset></dl></div>
                      • <bdo id='c7jsE'></bdo><ul id='c7jsE'></ul>

                          <legend id='c7jsE'><style id='c7jsE'><dir id='c7jsE'><q id='c7jsE'></q></dir></style></legend>
                        1. <tfoot id='c7jsE'></tfoot>
                        2. <small id='c7jsE'></small><noframes id='c7jsE'>

                            <tbody id='c7jsE'></tbody>

                          主站蜘蛛池模板: 黄在线免费观看 | av在线播放一区二区 | 91久久精品国产91久久 | 国产日韩精品一区 | 久久r久久| 欧美精品一区三区 | 午夜不卡一区二区 | 在线看av网址| 91精品国产高清久久久久久久久 | 91久色| 亚洲免费一区 | 欧美一级大片 | 亚洲综合五月天婷婷 | 高清视频一区二区三区 | 久久精品国产99国产精品 | 亚洲人成免费 | 碰碰视频 | 欧美日韩国产免费 | 国产精品国产a | 中文字幕亚洲视频 | 久久精品在线免费视频 | 99re视频在线观看 | 日韩午夜电影在线观看 | 综合久久99 | 欧美一级在线免费观看 | 日韩精品一区二区久久 | 天天综合亚洲 | 精品在线观看一区 | 免费精品 | 欧美久久久网站 | 欧美激情欧美激情在线五月 | www.狠狠干 | 欧美精品一区二区三区在线 | 日本成人综合 | 天天操伊人 | 国外成人在线视频 | 欧美国产精品一区二区三区 | 免费视频一区二区 | 国产一级片在线观看视频 | h片在线免费看 | 爽爽免费视频 |