Wednesday, January 13, 2016
S60 just learning development, how the contents of the string array defined in the resource file read out the cycle
Resource file defines:
RESOURCE ARRAY r_catlist_list_array
{
items =
{
LBUF {txt = "0 \ t Beijing A Beijing";},
LBUF {txt = "0 \ t Beijing B Beijing (taxi)";},
LBUF {txt = "0 \ t Tianjin Tianjin A";},
LBUF {txt = "0 \ t Shijiazhuang City, Hebei A";},
}
}
Reply:
CDesCArray * iKeyArray = CEikonEnv :: Static () - & gt; ReadDesCArrayResourceL (R_CATLIST_LIST_ARRAY);
Reply:
Thank Beover1984 (rock life) reply.
Reply:
CAknConfirmationNote * note = new (ELeave) CAknConfirmationNote ();
TDesC iCurrentItem = (* iKeyArray) [aSelectedItem];
note- & gt; ExecuteLD (iCurrentItem);
I use the above code displays how it is garbled, and the display is normal in the ListBox. Thank you!
Reply:
TPtrC ptr = iKeyArray- & gt; MdcaPoint (aSelectedItem);
CAknConfirmationNote * note = new (ELeave) CAknConfirmationNote ();
TPtrC ptr = iKeyArray- & gt; MdcaPoint (aSelectedItem);
note- & gt; ExecuteLD (ptr);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment