Skip to content

Commit d372fcb

Browse files
author
msebolt
committed
resource file consolidation pr50
1 parent dca9870 commit d372fcb

4 files changed

Lines changed: 27 additions & 43 deletions

File tree

‎.openpublishing.redirection.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7965,6 +7965,11 @@
79657965
"redirect_url": "/cpp/windows/how-to-copy-resources",
79667966
"redirect_document_id": false
79677967
},
7968+
{
7969+
"source_path": "docs/windows/how-to-search-for-symbols-in-resources.md",
7970+
"redirect_url": "/cpp/windows/how-to-include-resources-at-compile-time",
7971+
"redirect_document_id": false
7972+
},
79687973
{
79697974
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
79707975
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#### [How to: Create Resources](how-to-create-a-resource-script-file.md)
1414
#### [How to: Manage Resources](how-to-copy-resources.md)
1515
#### [How to: Include Resources at Compile Time](how-to-include-resources-at-compile-time.md)
16-
#### [How to: Search for Symbols in Resources](how-to-search-for-symbols-in-resources.md)
1716
#### [Editable File Types for Resources](editable-file-types-for-resources.md)
1817
#### [Manifest Resources](manifest-resources.md)
1918
### [Symbols: Resource Identifiers](symbols-resource-identifiers.md)

‎docs/windows/how-to-include-resources-at-compile-time.md‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: "How to: Include Resources at Compile Time (C++)"
33
ms.date: "11/04/2016"
44
f1_keywords: ["vs.resvw.resource.including", "vc.resvw.resource.including", "vc.editors.resourceincludes"]
5-
helpviewer_keywords: ["comments [C++], compiled files", "resources [C++], including at compile time", "projects [C++], including resources", "#include directive", "include directive (#include)", "Resource Includes dialog box [C++]", "rc files [C++], changing storage", "symbol header files [C++], changing", ".rc files [C++], changing storage", "symbol header files [C++], read-only", "symbols [C++], symbol header files", "directories [C++], specifying include paths for resources", "include files [C++], specifying for resources", "resources [C++], including in projects"]
5+
helpviewer_keywords: ["comments [C++], compiled files", "resources [C++], including at compile time", "projects [C++], including resources", "#include directive", "include directive (#include)", "Resource Includes dialog box [C++]", "rc files [C++], changing storage", "symbol header files [C++], changing", ".rc files [C++], changing storage", "symbol header files [C++], read-only", "symbols [C++], symbol header files", "directories [C++], specifying include paths for resources", "include files [C++], specifying for resources", "resources [C++], including in projects", "symbols [C++], finding", "resources [C++], searching for symbols"]
66
ms.assetid: 357e93c2-0a29-42f9-806f-882f688b8924
77
---
8-
# How to: Include Resources at Compile Time
8+
# How to: Include Resources at Compile Time (C++)
99

1010
Normally it's easy and convenient to work with the default arrangement of all resources in one resource script (.rc) file. However, you can add resources in other files to your current project at compile time by listing them in the **Compile-time directives** box in the **Resource Includes** dialog box.
1111

@@ -19,7 +19,7 @@ There are several reasons to place resources in a file other than the main .rc f
1919

2020
- To include resources that are being used by several different projects, or that are part of a source code version-control system, and so must exist in a central location where modifications will affect all projects.
2121

22-
- To include resources (such as RCDATA resources) that are in a custom format. RCDATA resources may have special requirements. For example, you cannot use an expression as a value for the nameID field. See the Windows SDK documentation for more information.
22+
- To include resources (such as RCDATA resources) that are in a custom format. RCDATA resources may have special requirements. For example, you can't use an expression as a value for the nameID field. For more information, see the Windows SDK documentation.
2323

2424
If you have sections in your existing .rc files that meet any of these conditions, you should place the sections in one or more separate .rc files and include them in your project using the **Resource Includes** dialog box. The *Projectname*.rc2 file created in the \res subdirectory of a new project is used for this purpose.
2525

@@ -36,7 +36,7 @@ To open the **Resource Includes** dialog box, right-click an .rc file in [Resour
3636
> [!NOTE]
3737
> Entries in these text boxes appear in the .rc file marked by `TEXTINCLUDE 1`, `TEXTINCLUDE 2`, and `TEXTINCLUDE 3` respectively. For more information, see [TN035: Using Multiple Resource Files and Header Files with Visual C++](../mfc/tn035-using-multiple-resource-files-and-header-files-with-visual-cpp.md).
3838
39-
Once you have made changes to your resource file using the **Resource Includes** dialog box, you need to close the .rc file and then reopen it for the changes to take effect. For more information, see [Including Resources at Compile Time](../windows/how-to-include-resources-at-compile-time.md).
39+
Once you have made changes to your resource file using the **Resource Includes** dialog box, you need to close the .rc file and then reopen it for the changes to take effect.
4040

4141
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the .NET Framework Developer's Guide.
4242

@@ -50,12 +50,28 @@ For information on adding resources to managed projects, see [Resources in Deskt
5050

5151
The resources in files included in this way are made a part of your executable file at compile time. They aren't directly available for editing or modification when you're working on your project's main .rc file. Open included .rc files separately. Any files that are included but don't have an .rc extension won't be editable by the resource editors.
5252

53-
## To specify include directories for a specific resource (.rc file) (C++)
53+
## To specify include directories for a specific resource (.rc file)
5454

5555
1. Right-click the .rc file in Solution Explorer and select **Properties** from the shortcut menu.
5656

5757
1. In the **Property Pages** dialog box, select the **Resources** node in the left pane, then specify the additional include directories in the **Additional include directories** property.
5858

59+
## To find symbols in resources
60+
61+
1. From the **Edit** menu, choose **Find Symbol**.
62+
63+
1. In the [Find Symbol dialog box](/visualstudio/ide/go-to), in the **Find What** box, select a previous search string from the drop-down list or type the accelerator key you want to find (for example, ID_ACCEL1).
64+
65+
> [!TIP]
66+
> To use [regular expressions](/visualstudio/ide/using-regular-expressions-in-visual-studio) for your search, you must use the [Find in Files command](/visualstudio/ide/reference/find-command) from the **Edit** menu instead of the **Find Symbol** command. To enable regular expressions, you must have the **Use: Regular Expressions** check box selected in the [Find dialog box](/visualstudio/ide/finding-and-replacing-text). Then you can select the right-arrow button to the right of the **Find What** box to display a list of regular search expressions. When you select an expression from this list, it is substituted as the search text in the **Find What** box.
67+
68+
1. Select any of the **Find** options.
69+
70+
1. Choose **Find Next**.
71+
72+
> [!NOTE]
73+
> You cannot search for symbols in string, accelerator, or binary resources.
74+
5975
## Requirements
6076

6177
Win32
@@ -64,5 +80,4 @@ Win32
6480

6581
[Resource Files](../windows/resource-files-visual-studio.md)<br/>
6682
[Resource Editors](../windows/resource-editors.md)<br/>
67-
[TN035: Using Multiple Resource Files and Header Files with Visual C++](../mfc/tn035-using-multiple-resource-files-and-header-files-with-visual-cpp.md)<br/>
68-
[Symbols: Resource Identifiers](../windows/symbols-resource-identifiers.md)<br/>
83+
[Symbols: Resource Identifiers](../windows/symbols-resource-identifiers.md)<br/>

‎docs/windows/how-to-search-for-symbols-in-resources.md‎

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

0 commit comments

Comments
 (0)