Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.
The resources for a project such as menus, dialogs, forms etc are defined in the .RSS file. After compiling the .RSS file, two files are generated:
1. Compiled binary file for the resources, generally will have an extension of .RSC. If your application has multiple language support then the extension will be in this format .RXX (here the XX will be replaced with the corresponding language code for eg: English it will be .R01). 2. An .RSG file which is merely a header specifying resource identifier. Which will be created in the epoc32/include directory.
The Binary File is loaded by the application framework upon application startup, hence you will load the required individual resources from your code as needed with the help of the resource identifiers created in the .RSG File.
The .RSG file is generally named as "YourProjectName.RSG", you need to include this .RSG file in order to use the resources defined in .RSS file. The basic format of .RSG File is something like below:
#define R_SOME_RESOURCE 0x68553002
// where R_SOME_RESOURCE is your resource name.
Where ever you want to use a particular resource, include the .RSG file in the corresponding CPP file. If your project name is HelloWorld then your resource file name would be "HelloWorld.rsg", hence simply write the statement: