Partager via


Files Affected by Resource Editing

The Visual Studio environment works with the files shown in the following table during your resource editing session.

File name

Description

Resource.h

Header file generated by the development environment; contains symbol definitions.

Filename.aps

Binary version of the current resource script file; used for quick loading.

The resource editors do not directly read .rc or resource.h files. The resource compiler compiles them into .aps files, which are consumed by the resource editors. This file is a compile step and only stores symbolic data. As with a normal compile process, information that is not symbolic (for example, comments) is discarded during the compile process. Whenever the .aps file gets out of synch with the .rc file, the .rc file is regenerated (for example, when you Save, the resource editor overwrites the .rc file and the resource.h file). Any changes to the resources themselves will remain incorporated in the .rc file, but comments will always be lost once the .rc file is overwritten. For information on how to preserve comments, see Including Resources at Compile Time.

.rc

Resource script file that contains script for the resources in your current project. This file is overwritten by the .aps file whenever you save.

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.

Requirements

Win32

See Also

Reference

Resource Files (Visual Studio)