I have met a problem during reading data from a resource file. I have refered to the default example code (base\readdata), but I got a "program close" error in my emulator
the following the part of my code for reading data
**********************************************
RResourceFile resourceFile;
RFs fsSession;
fsSession.Connect();
I know that i have to call ConfirmSignature() before calling AllocReadLC(), but I still get the error. I can log the string "dddd" so it means i got the error after calling the AllocReadLC or probably later
So anyone knows what's going on????
Help~~~~~
thx a lot
Once the resource is loaded, you can just use it directly as normal. It works the same as the ones defined in your currentl .rss file. Please try it. Should you have any problems, please let me know.
i failed to get the correct data from my resource file
i have succeeded in loading the RSC file, then i tried to access the data by TResourceReader (just as the example from the SDK)
i tried this
theReader.ReadInt32() (nb sth like this, to get a LONG)
and
theReader.ReadHufC8 (nb still sth like this, to get a LTEXT)
but i have got some strange things...but not my data defined in the RESOURCE file....
my resource file is like this
RESOURCE ARRAY cda
{
datament = {
DATA{
longNum = 8;
ltextString = "ABC";
},
..............
I'm also trying to read an array from the resource file. I need it for getting the text selected from a CAknEnumeratedTextPopupSettingItem. Can you show me your solution?