| title | How to: Configure Visual C++ Projects to Target 64-Bit Platforms | Microsoft Docs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||
| ms.date | 11/04/2016 | |||||||||
| ms.reviewer | ||||||||||
| ms.suite | ||||||||||
| ms.technology |
|
|||||||||
| ms.tgt_pltfrm | ||||||||||
| ms.topic | article | |||||||||
| dev_langs |
|
|||||||||
| helpviewer_keywords |
|
|||||||||
| ms.assetid | 2b9ae001-df36-4750-83b2-982145d632ad | |||||||||
| caps.latest.revision | 22 | |||||||||
| author | corob-msft | |||||||||
| ms.author | corob | |||||||||
| manager | ghogen | |||||||||
| translation.priority.ht |
|
|||||||||
| translation.priority.mt |
|
You can use the project configurations in Visual Studio to set up C++ applications to target 64-bit platforms. You can also migrate Win32 project settings into a 64-bit project configuration.
-
Open the C++ project that you want to configure.
-
Open the property pages for that project. For more information, see Working with Project Properties.
[!NOTE] For .NET projects, make sure that the Configuration Properties node, or one of its child nodes, is selected in the <Projectname> Property Pages dialog box; otherwise, the Configuration Manager button remains unavailable.
-
Choose the Configuration Manager button to open the Configuration Manager dialog box.
-
In the Active Solution Platform drop-down list, select the <New...> option to open the New Solution Platform dialog box.
-
In the Type or select the new platform drop-down list, select a 64-bit platform.
[!NOTE] In the New Solution Platform dialog box, you can use the Copy settings from option to copy existing project settings into the new 64-bit project configuration.
-
Choose the OK button. The platform that you selected in the preceding step appears under Active Solution Platform in the Configuration Manager dialog box.
-
Choose the Close button in the Configuration Manager dialog box, and then choose the OK button in the <Projectname> Property Pages dialog box.
-
When the New Solution Platform dialog box is open while you set up a project to target a 64-bit platform, in the Copy settings from drop-down list, select Win32. These project settings are automatically updated on the project level:
-
The /MACHINE linker option is set to /MACHINE:X64.
-
Register Output is turned OFF. For more information, see Linker Property Pages.
-
Target Environment is set to /env x64. For more information, see MIDL Property Pages: General.
-
Validate Parameters is cleared and reset to the default value. For more information, see MIDL Property Pages: Advanced.
-
If Debug Information Format was set to /ZI in the Win32 project configuration, then it is set to /Zi in the 64-bit project configuration. For more information, see /Z7, /Zi, /ZI (Debug Information Format).
[!NOTE] None of these project properties are changed if they are overridden on the file level.
-
64-bit Applications
Configuring Programs for 64-Bit
Debug 64-Bit Applications