Hi friends
I need to pass a dynamic value during runtime in StringLoader::LoadLC();
When i use a static variable like
TInt getText = R_COMMAND1_TEXT;
and pass to
HBufC* textValue = StringLoader::LoadLC(getText );
Then its working fine.I can get the value.
But my problem is, i need to pass a value which i get it in TBuf variable.
I tried to convert the TBuf to TInt and tried to pass the value.
But the application get crashed.
Can any one please help me to solve this problem.
The code i tried is ...
_LIT(KgetText,"R_COMMAND1_TEXT;");
TBuf16<50> To_Print1(KgetText);
TInt ddd;
TLex iLex2(To_Print1);
iLex2.Val(ddd);
HBufC* textValue = StringLoader::LoadLC(ddd);
Wats the problem in this .....

Reply With Quote

