Namespaces
Variants
Actions

RSG File

Jump to: navigation, search
Article Metadata

Article
Created: vasant21 (25 Oct 2007)
Last edited: hamishwillee (26 Jul 2012)

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 26 July 2012, at 08:07.
90 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved