Listbox loading problem
Login to reply to this topic.
Mon, 2005-01-24 10:41
Joined: 2004-06-07
Forum posts: 177
Hello,, i'm trying to create a listbox, i use:
TResourceReader reader;
   iEikonEnv->CreateResourceReaderLC(reader, R_LIST_FOLDERS);
   iSavedGamesListBox->ConstructFromResourceL(reader);
   CleanupStack::PopAndDestroy(); // reader

When building, i'm getting:
error C2065: 'R_LIST_FOLDERS' : undeclared identifier
I double checked the decleration in the ".rss" file and everything is correct. Does anybody know this problem? Thanks in advance.

Mon, 2005-01-24 10:44
Joined: 2004-05-24
Forum posts: 982
Quote from: acelias
Hello,, i'm trying to create a listbox, i use:
TResourceReader reader;
   iEikonEnv->CreateResourceReaderLC(reader, R_LIST_FOLDERS);
   iSavedGamesListBox->ConstructFromResourceL(reader);
   CleanupStack::PopAndDestroy(); // reader

When building, i'm getting:
error C2065: 'R_LIST_FOLDERS' : undeclared identifier
I double checked the decleration in the ".rss" file and everything is correct. Does anybody know this problem? Thanks in advance.

include your rss in your cpp file (#include <myresources.rss>)

pirosl

Mon, 2005-01-24 10:49
Joined: 2004-06-07
Forum posts: 177
Thx Pirosl, u made me conscious that i forgot to include the rsg file, not the rss. It works now Smiley

copyright 2003-2009 NewLC SARL