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

<tfoot id='DlhMx'></tfoot>

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

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

          <bdo id='DlhMx'></bdo><ul id='DlhMx'></ul>
      2. CreateProcess 不傳遞命令行參數

        CreateProcess doesn#39;t pass command line arguments(CreateProcess 不傳遞命令行參數)
      3. <small id='kW4ny'></small><noframes id='kW4ny'>

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

              <bdo id='kW4ny'></bdo><ul id='kW4ny'></ul>
                <tbody id='kW4ny'></tbody>
                  <tfoot id='kW4ny'></tfoot>
                  本文介紹了CreateProcess 不傳遞命令行參數的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  您好,我有以下代碼,但沒有按預期工作,無法弄清楚問題出在哪里.

                  Hello I have the following code but it isn't working as expected, can't figure out what the problem is.

                  基本上,我正在執行一個進程(一個 .NET 進程)并傳遞命令行參數,它由 CreateProcess() 成功執行,但 CreateProcess() 沒有傳遞命令行參數

                  Basically, I'm executing a process (a .NET process) and passing it command line arguments, it is executed successfully by CreateProcess() but CreateProcess() isn't passing the command line arguments

                  我在這里做錯了什么??

                  What am I doing wrong here??

                  int main(int argc, char* argv[])
                  {
                      PROCESS_INFORMATION ProcessInfo; //This is what we get as an [out] parameter
                  
                      STARTUPINFO StartupInfo; //This is an [in] parameter
                  
                      ZeroMemory(&StartupInfo, sizeof(StartupInfo));
                      StartupInfo.cb = sizeof StartupInfo ; //Only compulsory field
                  
                      LPTSTR cmdArgs = "name@example.com";
                  
                      if(CreateProcess("D:\email\smtp.exe", cmdArgs, 
                          NULL,NULL,FALSE,0,NULL,
                          NULL,&StartupInfo,&ProcessInfo))
                      { 
                          WaitForSingleObject(ProcessInfo.hProcess,INFINITE);
                          CloseHandle(ProcessInfo.hThread);
                          CloseHandle(ProcessInfo.hProcess);
                  
                          printf("Yohoo!");
                      }  
                      else
                      {
                          printf("The process could not be started...");
                      }
                  
                      return 0;
                  }
                  

                  嘿還有一件事,如果我像這樣傳遞我的 cmdArgs :

                  Hey one more thing, if I pass my cmdArgs like this:

                  // a space as the first character
                  LPTSTR cmdArgs = " name@example.com";
                  

                  然后我得到錯誤,然后 CreateProcess 返回 TRUE 但我的目標進程沒有執行.

                  Then I get the error, then CreateProcess returns TRUE but my target process isn't executed.

                  Object reference not set to an instance of an object
                  

                  推薦答案

                  你應該在參數中指定模塊名稱:LPTSTR cmdArgs = "App name@example.com";它應該是整個命令行(包括 argv[0]).

                  You should specify also the module name in parameters: LPTSTR cmdArgs = "App name@example.com"; It should be the whole command line (including argv[0]).

                  這篇關于CreateProcess 不傳遞命令行參數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='JPjVG'><tr id='JPjVG'><dt id='JPjVG'><q id='JPjVG'><span id='JPjVG'><b id='JPjVG'><form id='JPjVG'><ins id='JPjVG'></ins><ul id='JPjVG'></ul><sub id='JPjVG'></sub></form><legend id='JPjVG'></legend><bdo id='JPjVG'><pre id='JPjVG'><center id='JPjVG'></center></pre></bdo></b><th id='JPjVG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JPjVG'><tfoot id='JPjVG'></tfoot><dl id='JPjVG'><fieldset id='JPjVG'></fieldset></dl></div>
                    <bdo id='JPjVG'></bdo><ul id='JPjVG'></ul>
                    <tfoot id='JPjVG'></tfoot>

                            <tbody id='JPjVG'></tbody>
                            <legend id='JPjVG'><style id='JPjVG'><dir id='JPjVG'><q id='JPjVG'></q></dir></style></legend>
                          1. <small id='JPjVG'></small><noframes id='JPjVG'>

                            主站蜘蛛池模板: 日韩精品一区二区三区中文字幕 | 国内自拍视频在线观看 | 在线观看国产www | 看羞羞视频| 久久这里有精品 | 中文字幕在线欧美 | 亚洲日本欧美 | 亚洲国产成人久久综合一区,久久久国产99 | 密室大逃脱第六季大神版在线观看 | 91看片免费版 | 成人精品鲁一区一区二区 | 精品中文字幕在线观看 | 黄网站在线播放 | 亚洲九色| 日韩欧美黄色 | 性网址 | 欧美亚洲在线 | 国产日韩欧美在线观看 | 日本精品999 | 亚洲精品免费看 | 欧美视频成人 | 影音先锋中文字幕在线观看 | 欧美福利| 成人在线视频一区 | 亚洲导航深夜福利涩涩屋 | 国产真实精品久久二三区 | 亚洲精品日日夜夜 | 久久曰视频 | 午夜精品福利视频 | 狠狠av | 一区二区三区亚洲 | 日韩亚洲欧美一区 | 中文字幕在线观看一区 | 亚洲精品电影在线观看 | 狠狠爱一区二区三区 | 国产免费va | 在线一区二区三区 | 国产精品成人国产乱 | 国产欧美一区二区三区在线播放 | 国产91色在线 | 亚洲 | 人人九九精 |