×
Namespaces

Variants
Actions

RSG File

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: vasant21 (25 Oct 2007)
Last edited: hamishwillee (30 May 2013)

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:

#include <HelloWorld.rsg>
This page was last modified on 30 May 2013, at 07:35.
39 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×