#include <eikon.rh>
#include <eikcore.rsg>
#include <appinfo.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include "products.hrh"
#ifdef LANGUAGE_01
#include "products.rls"
#elif defined LANGUAGE_02
#include "de/products.rls"
#endif
RESOURCE RSS_SIGNATURE { }
RESOURCE MENU_BAR r_products_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_products_menu; txt=STRING_r_products_menu; }
};
}
RESOURCE MENU_PANE r_products_menu
{
items=
{
MENU_ITEM { command=ESelect; txt=STRING_r_Select; },
2
MENU_ITEM { command=EOrder; txt=STRING_r_Order; },
MENU_ITEM { command=EPrice; txt=STRING_r_Price; },
MENU_ITEM { command=EExit; txt=STRING_r_Exit; }
};
}
RESOURCE TBUF r_welcome { buf=STRING_r_welcome; }
RESOURCE TBUF r_the_price_is { buf=STRING_r_the_price_is; }
#ifdef LANGUAGE_01
#include "products.rls"
#elif defined LANGUAGE_02
#include "de/products.rls"
#endif
rls_string STRING_r_products_menu "Produkte Menue"
rls_string STRING_r_Select "Waehlen"
rls_string STRING_r_Order "Kaufen"
rls_string STRING_r_Price "Preis"
rls_string STRING_r_Exit "Ausgang"
rls_string STRING_r_welcome "Willkommen beim Handy Katalog"
rls_string STRING_r_the_price_is "Der Preis ist :"
HBufC * myLine = iEikonEnv->AllocReadResourceLC(r_welcome);
iLabel->SetTextL(*myLine);
CleanupStack::PopAndDestroy(myLine);
Or if it is desired to load the string into a class member:
TBuf<35> myLine;
iEikonEnv->ReadResource(myLine,r_welcome);