newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Symbian OS
iPhone
Windows Mobile
Mobile Linux
Forums
Last forum posts
Home
::
Forums
::
Symbian
::
Symbian C++
Username:
*
Password:
*
Create new account
Request new password
TResourceReader gives CONE 14
Login
to reply to this topic.
Mon, 2004-12-13 22:36
joape382
Joined: 2004-09-06
Forum posts: 348
The following code gives me a CONE 14 panic ("Environment cannot find the specified resource in any resource file"). However, the resource surely exists and is as below:
Code:
CreateWindowL();
iListBox = new(ELeave) CAknSingleStyleListBox();
iListBox->SetContainerWindowL(*this);
iListBox->SetMopParent(this);
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC(reader, R_INITIAL_SELECTION_LIST);
iListBox->ConstructFromResourceL(reader);//CONE 14 HERE!!!!! WHY???????????????????????
CleanupStack::PopAndDestroy();
resource:
RESOURCE LISTBOX r_initial_selection_list
{
array_id = r_initial_selection_array;
flags = EAknListBoxSelectionList;
}
RESOURCE ARRAY r_initial_selection_array
{
items =
{
LBUF
{
txt = qtn_initial_option_get_address;
},
LBUF
{
txt = qtn_initial_option_get_addresses;
},
LBUF
{
txt = qtn_initial_option_get_operator;
}
};
}
#define qtn_initial_option_get_address "\tHämta adress\t\t"
#define qtn_initial_option_get_addresses "\tUppdatera adressbok\t\t"
#define qtn_initial_option_get_operator "\tVälj operatör\t\t"
Login
or
register
to post in forums
- Report To Moderator -
Tue, 2004-12-14 08:15
Core_RUS_
Joined: 2004-12-03
Forum posts: 191
if you defined resource in another rss-file, don't forget to add it by calling
iEikonEnv->AddResourceFileL(rscfile);
 
- Report To Moderator -
Tue, 2004-12-14 09:46
juuseri
Joined: 2004-01-06
Forum posts: 18
Have you writed your own resource definitions after these three resources?
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
RESOURCE EIK_APP_INFO
{
}
 
- Report To Moderator -
Tue, 2004-12-14 09:53
joape382
Joined: 2004-09-06
Forum posts: 348
Thanks guys,
I have done all this. However, I did a "abld reallyclean" and then rebuild it and then it worked. Strange...
 
- Report To Moderator -
Tue, 2004-12-14 09:54
Core_RUS_
Joined: 2004-12-03
Forum posts: 191
 
- Report To Moderator -
Professional
Services
Development
Consulting
Training
About NewLC
Commitments
References
Contact
copyright 2003-2009 NewLC SARL
Forum posts: 191
iEikonEnv->AddResourceFileL(rscfile);
Forum posts: 18
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
RESOURCE EIK_APP_INFO
{
}
Forum posts: 348
I have done all this. However, I did a "abld reallyclean" and then rebuild it and then it worked. Strange...
Forum posts: 191