Hi all
I am trying to set up a listbox with little bitmap icons, planning on using CAknSingleGraphicStyleListbox.
However, I do have already problems on compiling the code to load the icons into the application:
// Get the name of the file containing the icons
HBufC* iconFileName;
iconFileName = StringLoader::LoadLC(R_ICON_FILE_NAME); // Pushes iconFileName onto the Cleanup Stack.
// Create an array of icons, reading them from the file
CArrayPtr<CGulIcon>* icons = new(ELeave) CAknIconArray(KNumberOfIcons);
CleanupStack::PushL(icons);
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyAppTick, EMbmMyAppTick_mask));
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyApp1player, EMbmMyApp1player_mask));
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyApp2player, EMbmMyApp2player_mask));
CleanupStack::Pop(icons);
CleanupStack::PopAndDestroy(iconFileName);
iSavedGamesListBox->ItemDrawer()->ColumnData()->SetIconArray(icons); // passing ownership of icons
The compiler tell that EMbmMyAppTick, EMbmMyAppTick_mask,
EMbmMyApp1player, EMbmMyApp1player_mask,
EMbmMyApp2player, EMbmMyApp2player_mask
: error C2065: 'EMbmCheatCallTick' : undeclared identifier
I check my mbg file
I did not find error
My mbg file below:
// MyApp.mbg
// Generated by BitmapCompiler
// Copyright (c) 1998-2001 Symbian Ltd. All rights reserved.
//
enum TMbmMyApp
{
EMbmMyAppTick,
EMbmMyAppTick_mask,
EMbmMyApp1player,
EMbmMyApp2player,
EMbmMyApp1player_mask,
EMbmMyApp2player_mask
};
Who can tell me what is error.
Can anyone please help me?
Thank you very much!
bill

Reply With Quote

