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

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

    <legend id='Ox6AC'><style id='Ox6AC'><dir id='Ox6AC'><q id='Ox6AC'></q></dir></style></legend>
    1. <tfoot id='Ox6AC'></tfoot>
        • <bdo id='Ox6AC'></bdo><ul id='Ox6AC'></ul>

      1. 将控制台应用程序转换为 Windows 应用程序

        convert a console app to a windows app(将控制台应用程序转换为 Windows 应用程序)
        <tfoot id='WtsuJ'></tfoot>

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

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

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

                1. 本文介绍了将控制台应用程序转换为 Windows 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  (这是一个很长的故事)但我有一个包含 Windows 程序的大型复杂项目文件.不幸的是,该项目最初是作为控制台应用程序构建的.程序编译和链接正常,但是当运行时会弹出一个控制台而不是我希望的窗口集合.我查看了命令行并看到了/SUBSYSTEM:CONSOLE",而它应该是/SUBSYSTEM:WINDOWS".我不知道如何更改命令行.我可以在项目设置中的某处打勾以进行此更改吗?

                  (its a long story) but I have a large complex project file containing a windows program. Unfortunately the project was originally built as a console app. The program compiles and links ok but when runs brings up a console instead of the collection of windows I was hoping for. I looked at the command line and saw "/SUBSYSTEM:CONSOLE" whereas it should be "/SUBSYSTEM:WINDOWS". I have no idea how to change the command line. Is there some box I can tick in the project setting somewhere to make this change?

                  推荐答案

                  右键单击解决方案资源管理器中的项目图标,然后属性>链接器>系统>子系统,并将其设置为窗户.您还必须将 main() 方法更改为 WinMain().而且你最好创建一些窗口,否则就没什么可看的了.

                  Right-click the project icon in the Solution Explorer, then Properties > Linker > System > SubSystem, and set that to Windows. You'll also have to change your main() method to WinMain(). And you'd better create some windows or there won't be much to look at.

                  这篇关于将控制台应用程序转换为 Windows 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                  C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                  Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                  Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                  What is a dangling reference?(什么是悬空引用?)
                  C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)

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

                  <tfoot id='ryDWp'></tfoot>

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

                      1. <legend id='ryDWp'><style id='ryDWp'><dir id='ryDWp'><q id='ryDWp'></q></dir></style></legend>
                          <tbody id='ryDWp'></tbody>
                        • <bdo id='ryDWp'></bdo><ul id='ryDWp'></ul>