<tfoot id='cd17Q'></tfoot>
    1. <small id='cd17Q'></small><noframes id='cd17Q'>

    2. <legend id='cd17Q'><style id='cd17Q'><dir id='cd17Q'><q id='cd17Q'></q></dir></style></legend>
    3. <i id='cd17Q'><tr id='cd17Q'><dt id='cd17Q'><q id='cd17Q'><span id='cd17Q'><b id='cd17Q'><form id='cd17Q'><ins id='cd17Q'></ins><ul id='cd17Q'></ul><sub id='cd17Q'></sub></form><legend id='cd17Q'></legend><bdo id='cd17Q'><pre id='cd17Q'><center id='cd17Q'></center></pre></bdo></b><th id='cd17Q'></th></span></q></dt></tr></i><div id='cd17Q'><tfoot id='cd17Q'></tfoot><dl id='cd17Q'><fieldset id='cd17Q'></fieldset></dl></div>

        <bdo id='cd17Q'></bdo><ul id='cd17Q'></ul>

        在 C++ 中执行另一个程序

        时间:2023-07-02

          • <bdo id='rTY7c'></bdo><ul id='rTY7c'></ul>

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

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

              <tfoot id='rTY7c'></tfoot>
                <tbody id='rTY7c'></tbody>

                  <legend id='rTY7c'><style id='rTY7c'><dir id='rTY7c'><q id='rTY7c'></q></dir></style></legend>
                • 本文介绍了在 C++ 中执行另一个程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想从我的 C++ 程序远程执行另一个应用程序.到目前为止,我一直在使用 CreateProcess(...) 函数,它工作得很好.

                  I want to remotely execute another application from my C++ program. So far I played along with the CreateProcess(...) function and it works just fine.

                  然而,问题是我需要另一个程序的完整路径,但我不知道它的目录.所以我想要的是我只需要输入另一个程序的名称,就像你在运行中输入cmd"或winword"一样......它会打开相应的程序.

                  The problem however is that I need the full path of the other program but I do not know the directory of it. So what I want is that I just have to enter the name of the other program, like when you type "cmd" or "winword" into Run... it opens the corresponding programs.

                  提前致谢,俄罗斯

                  推荐答案

                  如果你像这样使用 CreateProcess:

                  If you are using CreateProcess like this:

                  CreateProcessA( "winword.exe", .... );
                  

                  那么 PATH 变量将不会被使用.您需要使用第二个参数:

                  then the PATH variable will not be used. You need to use the second parameter:

                  CreateProcessA( NULL, "winword.exe", .... );
                  

                  请参阅 http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx 了解详情.

                  这篇关于在 C++ 中执行另一个程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Win32 文件被锁定以供阅读:如何找出谁在锁定它们 下一篇:添加 #include <boost/thread/mutex.hpp>破坏了我的 ActiveX 控件?

                  相关文章

                    <bdo id='NbOYQ'></bdo><ul id='NbOYQ'></ul>

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

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

                    1. <tfoot id='NbOYQ'></tfoot>
                    2. <legend id='NbOYQ'><style id='NbOYQ'><dir id='NbOYQ'><q id='NbOYQ'></q></dir></style></legend>