How to: Configure visual c ++ projects for 64-bit platforms

Source: Internet
Author: User

This topic describes how to use the project configuration provided in the integrated development environment (IDE) of Visual Studio to set the C ++ application to a 64-bit platform.

To develop a 64-bit application, you must install at least one of the two visual c ++ 64-bit compilers. Otherwise, the 64-bit project configuration cannot be used in the IDE. For more information, see installing
Visual Studio 64-bit components.

Note:

By default, 64-bit tools are not available in Visual C ++ quick release. To enable the 64-Bit Tool on Visual C ++ quick build, you must install the Windows software development kit (SDK) in addition to Visual C ++ quick build ). Otherwise, try to use visual c ++ to configure the project as 64-oriented
When the bitwise platform is used, an error occurs.

This topic describes how to use Visual Studio ide To Change active project configurations to a 64-bit platform, and how to migrate Win32 project settings to 64-bit project configurations.

Set the C ++ application to a 64-bit Platform
  1. Open the C ++ project to be configured for the 64-bit platform.

  2. Open the properties page of the project. For more information, see How to: Open the project properties page.

    Note:

    For. Net projects, make sure to select the "configuration properties" node or one of its subnodes in the "<Project Name> properties page" dialog box. Otherwise, the "Configuration Manager" button is still disabled.

  3. Click "Configuration Manager" to open the "Configuration Manager" dialog box.

  4. Click the "Active solution platform" list and select the "<new...>" option to open the "New Solution platform" dialog box.

  5. Click the drop-down arrow of "type or select a new platform" and select a 64-bit platform.

    Note:

    In the "New Solution platform" dialog box, you can use the "copy from here Settings" option to copy the existing project settings to the new 64-bit project configuration.

  6. Click OK ". The platform selected in the previous step appears under active solution platform in the Configuration Manager dialog box.

  7. In the Configuration Manager dialog box, click close, and then click OK in the <Project Name> properties page dialog box ".

Copy the Win32 project settings to the 64-bit project configuration.
  • When setting a project to a 64-bit platform, if the "New Solution platform" dialog box is displayed, click the drop-down arrow of "Copy settings from here" and select "Win32 ". The following project settings will be automatically updated at the project level:

    • /Machine (specify the Target Platform)/Machine: IA64Or/Machine: x64.

    • "Register output" is disabled. For more information, see the "linker" property page.

    • Set "target environment"/Envx64Or/Envia64. For more information, see midl
      Property page: General.

    • Clear "verification parameters" and reset it to the default value. For more information, see midl
      Property page: advanced.

    • If you set "debug information format"/ZiIn the 64-bit project configuration, set it/Zi. For more information, see/z7,/Zi,/Zi (debugging information format ).

    Note:

    If you rewrite these project properties at the file level, these properties will not change.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.