×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    22

    Cant put icons on apps

    Hello to all.

    I'm using Series 60 SDK 2.0 and MW CodeWarrior and I cant get an icon diplayed, any icon. Many examples have an icon and when I import form MMP file I have to erase the lines that refer to the mbm or aif in order to get the compiler to finish without errors..
    Can you give me some help?
    Thanks a lot!

    Rui

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    Maybe This could work for you:


    //-- start of the code

    _LIT(KtxMBMfileName ,"MyIcon.mbm");
    TFileName MyFileName;
    TParsePtrC Parse(CEikonEnv::Static()->EikAppUi()->Application()->AppFullName());

    MyFileNamer.Copy(Parse.DriveAndPath());
    MyFileName.Append(KtxMBMfileName);

    CGulIcon* MyIcon = CEikonEnv::Static()->CreateIconL(MyFileName,0,1)

    // -- end of the code

    Just put the mbm file file in same folder as you app file is and you should get it working.

    yucca

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×