How to: Import and Export Resources
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.
Resource types such as accelerators, dialog boxes, and string tables cannot be imported or exported because they are not stand-alone file types.
To import an individual resource into your current resource file
In Resource View, right-click the node for the resource script (*.rc) file to which you want to add a resource.
Click Import on the shortcut menu.
Locate and select the file name of the bitmap (.bmp), icon (.ico), cursor (.cur), Html file (.htm), or other file that you want to import.
Click OK to add the resource to the selected file in Resource view.
The import process works the same way no matter which particular resource type you have selected. The imported resource is automatically added to the correct node for that resource type.
To export a bitmap, icon, or cursor as a separate file (for use outside of Visual C++)
In Resource view, right-click the resource you want to export.
Click Export on the shortcut menu.
In the Export Resource dialog box, accept the current file name or type a new one.
Navigate to the folder where you want to save the file and click Export.
For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.