Skip to content

Commit d1ef06b

Browse files
authored
Merge pull request MicrosoftDocs#1713 from msebolt/resource-file-consolidation-pr26
resource file consolidation pr26
2 parents 8ad03d0 + 66f9bb4 commit d1ef06b

7 files changed

+66
-133
lines changed

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7630,6 +7630,26 @@
76307630
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
76317631
"redirect_document_id": false
76327632
},
7633+
{
7634+
"source_path": "docs/windows/editing-a-string-in-a-version-information-resource.md",
7635+
"redirect_url": "/cpp/windows/version-information-editor",
7636+
"redirect_document_id": false
7637+
},
7638+
{
7639+
"source_path": "docs/windows/adding-version-information-for-another-language.md",
7640+
"redirect_url": "/cpp/windows/version-information-editor",
7641+
"redirect_document_id": false
7642+
},
7643+
{
7644+
"source_path": "docs/windows/deleting-a-version-information-block.md",
7645+
"redirect_url": "/cpp/windows/version-information-editor",
7646+
"redirect_document_id": false
7647+
},
7648+
{
7649+
"source_path": "docs/windows/accessing-version-information-from-within-your-program.md",
7650+
"redirect_url": "/cpp/windows/version-information-editor",
7651+
"redirect_document_id": false
7652+
},
76337653
{
76347654
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
76357655
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

docs/windows/TOC.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@
141141
##### [Creating, Moving, and Editing Toolbar Buttons](creating-moving-and-editing-toolbar-buttons.md)
142142
##### [Creating a Tool Tip for a Toolbar Button](creating-a-tool-tip-for-a-toolbar-button.md)
143143
#### [Version Information Editor](version-information-editor.md)
144-
##### [Editing a String in a Version Information Resource](editing-a-string-in-a-version-information-resource.md)
145-
##### [Adding Version Information for Another Language](adding-version-information-for-another-language.md)
146-
##### [Deleting a Version Information Block](deleting-a-version-information-block.md)
147-
##### [Accessing Version Information from Within Your Program](accessing-version-information-from-within-your-program.md)
148144
# [Active Template Library (ATL)](../atl/TOC.md)
149145
# [Microsoft Foundation Classes (MFC)](../mfc/TOC.md)
150146
# [ATL and MFC Shared Classes](../atl-mfc-shared/TOC.md)

docs/windows/accessing-version-information-from-within-your-program.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/windows/adding-version-information-for-another-language.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/windows/deleting-a-version-information-block.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/windows/editing-a-string-in-a-version-information-resource.md

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,73 @@
11
---
22
title: "Version Information Editor (C++)"
33
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"]
66
ms.assetid: 772e6f19-f765-4cec-9521-0ad3eeb99f9b
77
---
88
# Version Information Editor (C++)
99

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.
1111

1212
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.
1313

1414
> [!NOTE]
1515
> The Windows standard is to have only one version resource, named VS_VERSION_INFO.
1616
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).
1818

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:
2020

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
2222

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.
2424

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).
2650

2751
> [!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.
2955

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.
3164
3265
## Requirements
3366

3467
Win32
3568

36-
## See Also
69+
## See also
3770

3871
[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

Comments
 (0)