|
1 | 1 | ---
|
2 | 2 | title: "Version Information Editor (C++)"
|
3 | 3 | ms.date: "11/04/2016"
|
4 |
| -f1_keywords: ["vc.editors.version.F1"] |
5 |
| -helpviewer_keywords: ["Version Information editor [C++], about Version Information editor", "editors, Version Information", "resource editors [C++], Version Information editor"] |
| 4 | +f1_keywords: ["vc.editors.version.F1", "vc.editors.version"] |
| 5 | +helpviewer_keywords: ["Version Information editor [C++], about Version Information editor", "editors, Version Information", "resource editors [C++], Version Information editor", "version information resources [C++]", "resources [C++], editing version information", "languages, version information", "New Version Info Block", "blocks, adding", "resources [C++], adding version information", "version information, adding for languages", "blocks, deleting", "version information, deleting blocks", "resources [C++], deleting version information", "VerQueryValue", "version information, accessing from within programs", "GetFileVersionInfo", "version information"] |
6 | 6 | ms.assetid: 772e6f19-f765-4cec-9521-0ad3eeb99f9b
|
7 | 7 | ---
|
8 | 8 | # Version Information Editor (C++)
|
9 | 9 |
|
10 |
| -Version information consists of company and product identification, a product release number, and copyright and trademark notification. With the **Version Information** editor, you create and maintain this data, which is stored in the version information resource. The version information resource is not required by an application, but it is a useful place to collect information that identifies the application. Version information is also used by setup APIs. |
| 10 | +Version information consists of company and product identification, a product release number, and copyright and trademark notification. With the **Version Information** editor, you create and maintain this data, which is stored in the version information resource. The version information resource is not required by an application, but it's a useful place to collect information that identifies the application. Version information is also used by setup APIs. |
11 | 11 |
|
12 | 12 | A version information resource has an upper block and one or more lower blocks: a single fixed-information block at the top and one or more version information blocks at the bottom (for other languages and/or character sets). The top block has both editable numeric boxes and selectable drop-down lists. The lower blocks have only editable text boxes.
|
13 | 13 |
|
14 | 14 | > [!NOTE]
|
15 | 15 | > The Windows standard is to have only one version resource, named VS_VERSION_INFO.
|
16 | 16 |
|
17 |
| -The **Version Information** editor enables you to: |
| 17 | +For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index). |
18 | 18 |
|
19 |
| -- [Edit a string in a version information resource](../windows/editing-a-string-in-a-version-information-resource.md) |
| 19 | +The **Version Information** editor enables you: |
20 | 20 |
|
21 |
| -- [Add version information for another language (new version info block)](../windows/adding-version-information-for-another-language.md) |
| 21 | +## To edit a string in a version information resource |
22 | 22 |
|
23 |
| -- [Delete a version information block](../windows/deleting-a-version-information-block.md) |
| 23 | +Select the item once to choose it, then again to begin editing it. Make the changes directly in the **Version Information** table or in the [Properties window](/visualstudio/ide/reference/properties-window). The changes you make will be reflected in both places. |
24 | 24 |
|
25 |
| -- [Access version information from within your program](../windows/accessing-version-information-from-within-your-program.md) |
| 25 | + > [!NOTE] |
| 26 | + > When editing the `FILEFLAGS` key in the **Version Information** editor, you'll notice you cannot set the **Debug**, **Private Build**, or **Special Build** properties (in the **Properties** window) for .rc files: |
| 27 | +
|
| 28 | + - The **Version Information** editor sets the **Debug** property with a `#ifdef` in the resource script, based on the `_DEBUG` build flag. |
| 29 | + |
| 30 | + - If the `Private Build` key has a **Value** set in the **Version Information** table, the corresponding **Private Build** property (in the **Properties** window) for the `FILEFLAGS` key will be **True**. If the **Value** is empty, the property will be **False**. Likewise, the **Special Build** key (in the **Version Information** table) is tied to the **Special Build** property for the `FILEFLAGS` key. |
| 31 | + |
| 32 | +You can sort the information sequence of the string block by clicking either the **Key** or the **Value** column headings. These headings automatically rearrange the information into the selected sequence. |
| 33 | + |
| 34 | +## To add version information for another language (new version info block) |
| 35 | + |
| 36 | +1. Open a version information resource by double-clicking it in [Resource View](../windows/resource-view-window.md). |
| 37 | + |
| 38 | + > [!NOTE] |
| 39 | + > If your project doesn't already contain an .rc file, please see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md). |
| 40 | +
|
| 41 | +1. Right-click within the version information table and choose **New Version Info Block** from the shortcut menu. |
| 42 | + |
| 43 | + This command adds an additional information block to the current version information resource and opens its corresponding properties in the [Properties window](/visualstudio/ide/reference/properties-window). |
| 44 | + |
| 45 | +1. In the **Properties** window, choose the appropriate language and character set for your new block. |
| 46 | + |
| 47 | +## To delete a version information block |
| 48 | + |
| 49 | +1. Open the version information resource by double-clicking its icon in [Resource View](../windows/resource-view-window.md). |
26 | 50 |
|
27 | 51 | > [!NOTE]
|
28 |
| - > While using the **Version Information** editor, in many instances you can right-click to display a shortcut menu of resource-specific commands. For example, if you click while pointing to a block header entry, the shortcut menu shows the **New Version Block Info** and **Delete Version Block Info** commands. |
| 52 | + > If your project doesn't already contain an .rc file, please see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md). |
| 53 | +
|
| 54 | +1. Right-click the block header you wish to delete then choose **Delete Version Info Block** from the shortcut menu. |
29 | 55 |
|
30 |
| -For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index). |
| 56 | + This command deletes the selected header and leaves the rest of the version information intact. You can't undo the action. |
| 57 | + |
| 58 | +## To access version information from within your program |
| 59 | + |
| 60 | +If you want to access the version information from within your program, use the [GetFileVersionInfo](/windows/desktop/api/winver/nf-winver-getfileversioninfoa) function and the [VerQueryValue](/windows/desktop/api/winver/nf-winver-verqueryvaluea) function. |
| 61 | + |
| 62 | + > [!NOTE] |
| 63 | + > While using the **Version Information** editor, in many instances you can right-click to display a shortcut menu of resource-specific commands. For example, if you select while pointing to a block header entry, the shortcut menu shows the **New Version Block Info** and **Delete Version Block Info** commands. |
31 | 64 |
|
32 | 65 | ## Requirements
|
33 | 66 |
|
34 | 67 | Win32
|
35 | 68 |
|
36 |
| -## See Also |
| 69 | +## See also |
37 | 70 |
|
38 | 71 | [Resource Editors](../windows/resource-editors.md)<br/>
|
39 |
| -[Menus and Other Resources](https://msdn.microsoft.com/library/windows/desktop/ms632583.aspx) |
| 72 | +[Menus and Other Resources](https://msdn.microsoft.com/library/windows/desktop/ms632583.aspx)<br/> |
| 73 | +[Version Information (Windows)](https://msdn.microsoft.com/library/windows/desktop/ms646981.aspx) |
0 commit comments