You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
11
-
12
-
## To copy resources
10
+
## Copy Resources
13
11
14
12
You can copy resources from one file to another without changing them or you can change the language or condition of a resource while copying it.
15
13
@@ -45,7 +43,7 @@ You can use the drag-and-drop method between .rc files that are open [outside of
45
43
> [!NOTE]
46
44
> To avoid conflicts with symbol names or values in the existing file, Visual C++ may change the transferred resource's symbol value or symbol name and value when you copy it to the new file.
47
45
48
-
### To change the language or condition of a resource while copying
46
+
### Change the language or condition of a resource while copying
49
47
50
48
While copying in a resource, you can change its language property or condition property, or both.
51
49
@@ -59,23 +57,21 @@ The language and condition of a resource are shown in parentheses after the name
59
57
IDD_AboutBox (Finnish - XX33)
60
58
```
61
59
62
-
To copy an existing resource and change its language or condition:
60
+
#### To copy an existing resource and change its language or condition
63
61
64
62
1. In the .rc file or in the [Resource View](../windows/resource-view-window.md) window, right-click the resource you want to copy.
65
63
66
-
1. Choose **Insert Copy** from the shortcut menu.
67
-
68
-
1. In the **Insert Resource Copy** dialog box:
64
+
1. Choose **Insert Copy** from the shortcut menu and set the following:
69
65
70
66
- For the **Language** list box, select the language.
71
67
72
68
- In the **Condition** box, type the condition.
73
69
74
-
## To edit managed resource files
70
+
## Edit Resources
75
71
76
72
Managed resource files (.resx) are XML files. When you add a managed resource file to your project from the **Add New Item** dialog box, the **Managed Resources Editor** opens by default.
77
73
78
-
## To import and export resources
74
+
## Import and Export Resources
79
75
80
76
You can import graphical resources (bitmaps, icons, cursors, and toolbars), HTML files, and custom resources for use in Visual C++. You can export the same types of files from a Visual C++ project to separate files that can be used outside the development environment.
81
77
@@ -99,17 +95,16 @@ You can import graphical resources (bitmaps, icons, cursors, and toolbars), HTML
99
95
100
96
1. In **Resource** view, right-click the resource you want to export.
101
97
102
-
1. Select **Export** on the shortcut menu.
103
-
104
-
1. In the **Export Resource** dialog box, accept the current file name or type a new one.
98
+
1. Select **Export** on the shortcut menu and accept the current file name or type a new one.
105
99
106
100
1. Navigate to the folder where you want to save the file and choose **Export**.
0 commit comments