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

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

  • <tfoot id='0iZzF'></tfoot>

    1. <small id='0iZzF'></small><noframes id='0iZzF'>

      <legend id='0iZzF'><style id='0iZzF'><dir id='0iZzF'><q id='0iZzF'></q></dir></style></legend>
        <bdo id='0iZzF'></bdo><ul id='0iZzF'></ul>

        將 C++ 程序轉換為 Windows 服務?

        Convert a C++ program to a Windows service?(將 C++ 程序轉換為 Windows 服務?)

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

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

            <bdo id='YSyPU'></bdo><ul id='YSyPU'></ul>
                1. <legend id='YSyPU'><style id='YSyPU'><dir id='YSyPU'><q id='YSyPU'></q></dir></style></legend>
                    <tbody id='YSyPU'></tbody>
                  本文介紹了將 C++ 程序轉換為 Windows 服務?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我寫了一個控制臺程序來做事"——主要是使用boost.如何將其轉換為 Windows 服務?我應該事先了解有關 Windows 服務的哪些信息?

                  I've written a console program that "does stuff" - mainly using boost. How do I convert it to a Windows Service? What should I know about Windows Services beforehand?

                  推薦答案

                  有一個關于如何在 MSDN 上設置最小服務的好例子.請參閱有關編寫主函數、入口點和示例代碼的部分.

                  There's a good example on how to set up a minimal service on MSDN. See the parts about writing the main function, entry point and also the example code.

                  一旦您構建并運行了 Windows 服務,您就會發現下一個主要問題:調試很痛苦.沒有終端(因此沒有 stdout/stderr),一旦您嘗試運行可執行文件,它就會實際啟動服務,然后返回給您.

                  Once you've got a windows service built and running, you'll discover the next major gotcha: it's a pain to debug. There's no terminal (and hence no stdout/stderr) and as soon as you try to run the executable it actually launches the service then returns to you.

                  我發現一個非常有用的技巧是向您的應用程序添加一個 -foreground 選項,這樣如果您使用該標志運行,它就會繞過服務啟動器代碼,而是像常規控制臺一樣運行應用程序,這使得調試變得非常容易.在 VS.Net 中設置調試選項以使用該標志調用.

                  One trick I've found very useful is to add a -foreground option to your app so that if you run with that flag then it bypasses the service starter code and instead runs like a regular console app, which makes it vastly easier to debug. In VS.Net set up the debugging options to invoke with that flag.

                  這篇關于將 C++ 程序轉換為 Windows 服務?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 之間的區別)

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

                    • <bdo id='i93n1'></bdo><ul id='i93n1'></ul>
                    • <small id='i93n1'></small><noframes id='i93n1'>

                      • <legend id='i93n1'><style id='i93n1'><dir id='i93n1'><q id='i93n1'></q></dir></style></legend>

                              <tbody id='i93n1'></tbody>

                            <tfoot id='i93n1'></tfoot>

                            主站蜘蛛池模板: 五月婷六月丁香 | 亚洲精品福利在线 | 欧美三级在线 | 一二三在线视频 | 久久专区| 91精品久久久久久久久 | 在线视频成人 | 成人av播放 | 精品亚洲一区二区三区四区五区 | 亚洲美女av网站 | 美女天天操| 麻豆av在线| www.日本国产 | 亚洲福利一区二区 | 国产一区二区影院 | 国产一区二区欧美 | 91久久久精品国产一区二区蜜臀 | 黄视频网址| 在线观看视频亚洲 | 国产综合久久 | 久久久国产一区二区三区四区小说 | 日韩精品一区二区三区中文字幕 | 91成人在线视频 | 中文成人在线 | 国产亚洲一区二区三区在线观看 | 奇米在线| 日韩欧美视频在线 | 男人天堂久久久 | 高清黄色| 精品一区二区三区在线观看国产 | 麻豆国产精品777777在线 | 黄色大片免费网站 | 一级日批片 | 999久久久 | 国产一区二区三区免费观看在线 | 在线成人精品视频 | 成av在线 | 91精品久久久久久久久 | 中文字幕第一页在线 | 久久久久国产精品一区二区 | 欧美成人一区二区三区 |