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

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

    1. <legend id='gwTdN'><style id='gwTdN'><dir id='gwTdN'><q id='gwTdN'></q></dir></style></legend>
      <i id='gwTdN'><tr id='gwTdN'><dt id='gwTdN'><q id='gwTdN'><span id='gwTdN'><b id='gwTdN'><form id='gwTdN'><ins id='gwTdN'></ins><ul id='gwTdN'></ul><sub id='gwTdN'></sub></form><legend id='gwTdN'></legend><bdo id='gwTdN'><pre id='gwTdN'><center id='gwTdN'></center></pre></bdo></b><th id='gwTdN'></th></span></q></dt></tr></i><div id='gwTdN'><tfoot id='gwTdN'></tfoot><dl id='gwTdN'><fieldset id='gwTdN'></fieldset></dl></div>
    2. <tfoot id='gwTdN'></tfoot>
      1. 如何使用 Visual Studio 2012 为 Windows XP 进行编译?

        How do I compile for Windows XP with Visual Studio 2012?(如何使用 Visual Studio 2012 为 Windows XP 进行编译?)
        <tfoot id='haml3'></tfoot>

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

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

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

                  本文介绍了如何使用 Visual Studio 2012 为 Windows XP 进行编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  好的,所以我在 Windows 7 x64 中使用 Visual Studio 2012 进行编程和编译.我的应用程序在那里运行良好,但是当我尝试从 Windows XP SP3 虚拟机执行它时,我立即收到xxxx.exe 不是有效的 win32 应用程序".

                  Ok, so I'm using Visual Studio 2012 in Windows 7 x64 for programming and compiling. My application works fine there, but when I try to execute it from a Windows XP SP3 Virtual Machine, I get "xxxx.exe is not a valid win32 application" right away.

                  正在使用静态链接编译应用程序,即使用 /MT.我已经在 targetver.exe 中将 _WIN32_WINNT 设置为 0x0501;配置管理器设置为Win32,链接器高级选项中的目标机器设置为MACHINEX86.

                  The application is being compiled with static linking, that is, with /MT. I have set _WIN32_WINNT to 0x0501 in targetver.exe; the configuration manager is set to Win32 and the target machine in the Linker advanced options is set to MACHINEX86.

                  我的 targetver.h 看起来像这样:

                  My targetver.h looks like this:

                  #include <winsdkver.h>
                  
                  #define _WIN32_WINNT 0x0501
                  #define WINVER 0x0501
                  #define NTDDI_VERSION 0x0501
                  
                  #include <SDKDDKVer.h>
                  

                  我也尝试过使用 /MD 进行编译并安装 .NET Framework,但这也无济于事.

                  I also tried compiling with /MD and installing .NET Framework, but that didn't help either.

                  我一无所知,我真的可以使用一些帮助,因为我需要让它在 Windows XP 上运行.

                  I'm clueless, and I could really use some help as I need to have it working for Windows XP.

                  推荐答案

                  VC++ 2012 RTM 支持 Windows XP – 该支持于 2012 年晚些时候在 Visual Studio 2012 Update 1 中提供.

                  VC++ 2012 RTM did not support Windows XP – that support came later in 2012 in Visual Studio 2012 Update 1.

                  可以安装 面向 VC++ 2012 的 Windows XP 的 CTP,但您必须链接CRT 静态以便部署.请参阅 这篇博客文章 了解更多信息.

                  The CTP of Windows XP targeting with VC++ 2012 could be installed, but you would have to link the CRT statically in order to deploy. See this blog article for more information.

                  Visual Studio 2012 Update 1 添加了对在 Windows XP 上运行使用 VC++ 2012 构建的应用程序的官方支持以及动态链接 CRT 的能力.

                  Visual Studio 2012 Update 1 added official support for running applications built with VC++ 2012 on Windows XP as well as the ability to link the CRT dynamically.

                  • 下载链接
                  • 包含附加信息的博客文章

                  这篇关于如何使用 Visual Studio 2012 为 Windows XP 进行编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Consistent pseudo-random numbers across platforms(跨平台一致的伪随机数)
                  Vary range of uniform_int_distribution(改变uniform_int_distribution的范围)
                  What is a seed in terms of generating a random number?(就生成随机数而言,种子是什么?)
                  Is 1.0 a valid output from std::generate_canonical?(1.0 是 std::generate_canonical 的有效输出吗?)
                  Getting big random numbers in C/C++(在 C/C++ 中获取大随机数)
                  What is the best way to generate random numbers in C++?(在 C++ 中生成随机数的最佳方法是什么?)
                  <tfoot id='4PoEB'></tfoot>

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

                    • <small id='4PoEB'></small><noframes id='4PoEB'>

                        <tbody id='4PoEB'></tbody>
                          <legend id='4PoEB'><style id='4PoEB'><dir id='4PoEB'><q id='4PoEB'></q></dir></style></legend>