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.
For using TResouceReader you need to include barsread.h and Link against: bafl.lib.
TResourceReader is used to read resources, first you need to create a TResourceReader object, then using control environment's CreateResourceReaderLC() method you can read the specified resource from the resource file.
As a simple example, we would prepare EDWIN from resource defined in .Rss file
* Edwin Resource defined in .Rss file.
#define qnn_edwin_data_width 10
#define qnn_edwin_data_height 4
#define qnn_edwin_data_maxlength 0
RESOURCE EDWIN r_application_edwin_data
flags = EAknEditorFlagDefault;
width = qnn_edwin_data_width;
maxlength = qnn_edwin_data_maxlength;
* Using TResource Reader, for contructing EDWIN.
// Create TResouceReader Object //
// Reade the R_APPLICATION_EDWIN_DATA Resouce into reader //
// Create Edwin //
iEdwin = new (ELeave) CEikEdwin;
As the name suggests, it Completes the construction of a new Edwin
by contructing the edwin from reader object.
// Resource Reader //