All resources are defined in a resource script file. You use a text editor to create a resource script file that has an .RC extension. Resources are defined either explicitly in statements in the resource script file, or in other files (such as output files from the resource editors). The .RC file is the input file to the RC; the output has an .RES extension. The .RC file can contain statements that define resources and that include resources from other files. Text-based resources such as menus, accelerator keys, and text strings are defined in the .RC file. Non-text-based resources are specified in the .RC file as file names of the external files where these resources reside. Such resources include icons, pointers, and bitmaps. The syntax for including external files in a resource script varies according to the nature of the resources defined or contained in the files. Fonts have a resource file to themselves.

Make sure that none of the include files in your resource script file contain an end-of-file character. When the RC sees an end-of-file character, it assumes it to be the end of all input.

For an example of a resource script file, see the sample program TEMPLATE.


[Back] [Next]