|
|
User login
Feeds |
TResourceReader gives CONE 14
|
|||||
| Mon, 2004-12-13 22:36 | |
|
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" |
|
Forum posts: 192
iEikonEnv->AddResourceFileL(rscfile);
Forum posts: 18
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
RESOURCE EIK_APP_INFO
{
}
Forum posts: 349
I have done all this. However, I did a "abld reallyclean" and then rebuild it and then it worked. Strange...
Forum posts: 192