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

<legend id='RtsEc'><style id='RtsEc'><dir id='RtsEc'><q id='RtsEc'></q></dir></style></legend>

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

  1. <tfoot id='RtsEc'></tfoot>
      <bdo id='RtsEc'></bdo><ul id='RtsEc'></ul>

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

    1. 有沒(méi)有辦法使用 win API 獲取 HRESULT 值的字符串表

      Is there a way to get the string representation of HRESULT value using win API?(有沒(méi)有辦法使用 win API 獲取 HRESULT 值的字符串表示?)
        • <small id='4euv9'></small><noframes id='4euv9'>

            <tbody id='4euv9'></tbody>

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

              • 本文介紹了有沒(méi)有辦法使用 win API 獲取 HRESULT 值的字符串表示?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                win API 中是否有一個(gè)函數(shù)可以用來(lái)提取 HRESULT 值的字符串表示?

                Is there a function in win API which can be used to extract the string representation of HRESULT value?

                問(wèn)題是并非所有返回值都記錄在 MSDN 中,例如 ExecuteInDefaultAppDomain() 函數(shù)沒(méi)有記錄為返回0x80070002 - 系統(tǒng)找不到指定的文件.",但是,它確實(shí)如此!所以,我想知道是否有一個(gè)函數(shù)可以在普通情況下使用.

                The problem is that not all return values are documented in MSDN, for example ExecuteInDefaultAppDomain() function is not documented to return "0x80070002 - The system cannot find the file specified.", however, it does! Therefore, I was wondering whether there is a function to be used in common case.

                推薦答案

                您可以使用 _com_error:

                _com_error err(hr);
                LPCTSTR errMsg = err.ErrorMessage();
                

                如果您出于任何原因不想使用 _com_error,您仍然可以查看其源代碼,看看它是如何完成的.

                If you don't want to use _com_error for whatever reason, you can still take a look at its source, and see how it's done.

                不要忘記包含標(biāo)題 comdef.h

                這篇關(guān)于有沒(méi)有辦法使用 win API 獲取 HRESULT 值的字符串表示?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                In what ways do C++ exceptions slow down code when there are no exceptions thown?(當(dāng)沒(méi)有異常時(shí),C++ 異常會(huì)以何種方式減慢代碼速度?)
                Why catch an exception as reference-to-const?(為什么要捕獲異常作為對(duì) const 的引用?)
                When and how should I use exception handling?(我應(yīng)該何時(shí)以及如何使用異常處理?)
                Scope of exception object in C++(C++中異常對(duì)象的范圍)
                Catching exceptions from a constructor#39;s initializer list(從構(gòu)造函數(shù)的初始化列表中捕獲異常)
                Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 說(shuō)明符 C++11 noexcept 之間的區(qū)別)
                  <tbody id='6C4tc'></tbody>

              • <small id='6C4tc'></small><noframes id='6C4tc'>

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

                    <tfoot id='6C4tc'></tfoot>

                      <legend id='6C4tc'><style id='6C4tc'><dir id='6C4tc'><q id='6C4tc'></q></dir></style></legend>
                          <bdo id='6C4tc'></bdo><ul id='6C4tc'></ul>
                          主站蜘蛛池模板: 亚洲一区二区精品视频 | 超碰导航 | 国产精品亚洲一区二区三区在线观看 | 丁香久久 | 国产精品国产亚洲精品看不卡15 | 亚洲午夜精品视频 | 日韩二三区 | 在线一区二区国产 | 午夜一区 | 91精品国产综合久久久久久丝袜 | 久久久一区二区 | 亚洲少妇综合网 | 欧美日韩专区 | 国产激情视频网 | 91在线观看免费视频 | 91成人在线 | av资源中文在线天堂 | 人人做人人澡人人爽欧美 | 国产精品久久久久久久久图文区 | 亚洲成在线观看 | 天天躁日日躁性色aⅴ电影 免费在线观看成年人视频 国产欧美精品 | 久久国产精品精品国产色婷婷 | 中文字幕在线观 | 久久久精品国产 | 精品一区二区三区四区视频 | 狠狠的干狠狠的操 | 亚洲国产免费 | 毛片免费看的 | 国产免费福利小视频 | 日韩三级在线 | 伊人网综合在线观看 | 久久久久国产 | 久久国产精品一区二区三区 | 亚洲人a | 视频国产一区 | 久久久久久久久一区 | 国产精品亚洲第一 | 中文字幕第三页 | 国产无套一区二区三区久久 | 久久久91精品国产一区二区三区 | 精品国产乱码久久久久久中文 |