Cannot open resource file

Login to reply to this topic.
Wed, 2006-03-01 10:12
Joined: 2004-06-17
Forum posts: 47
Hi,

on 3rd edition beta this code works perfectly:

_LIT( KIconFile,"\\resource\\apps\\mobilesearch.mbm");
   TFileName mbmFile( KIconFile );
   CompleteWithAppPath( mbmFile );
   
   iconList->AppendL( iEikonEnv->CreateIconL( mbmFile, EMbmMobilesearchContact13x13, EMbmMobilesearchContact13x13) );
   
However, on 3rd edition final, I get an error system error 1001, although I am pretty sure all files are there and in the correct folder.

Any ideas?
Reards
lkz633

Thu, 2006-08-24 07:48
Joined: 2006-04-28
Forum posts: 6
Re: Cannot open resource file
Quote from: lkz633
Hi,

on 3rd edition beta this code works perfectly:

_LIT( KIconFile,"\\resource\\apps\\mobilesearch.mbm");
   TFileName mbmFile( KIconFile );
   CompleteWithAppPath( mbmFile );
   
   iconList->AppendL( iEikonEnv->CreateIconL( mbmFile, EMbmMobilesearchContact13x13, EMbmMobilesearchContact13x13) );
   
However, on 3rd edition final, I get an error system error 1001, although I am pretty sure all files are there and in the correct folder.

Any ideas?
Reards
lkz633


I got same error, but I resolved at this way...

Code:
_LIT(KIcons, "\\resource\\apps\\icons.mbm");
CArrayPtr<CGulIcon>* iconList = new (ELeave) CAknIconArray(2);
CleanupStack::PushL(iconList);

iconList->AppendL(iEikonEnv->CreateIconL(KIcons, EIconOn, EIconOnMask));
iconList->AppendL(iEikonEnv->CreateIconL(KIcons, EIconOff, EIconOffMask));

_ListBox->ItemDrawer()->ColumnData()->SetIconArray(iconList);
CleanupStack::Pop();


  • Login to reply to this topic.