Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor abolfoooud's Avatar
    Join Date
    Jan 2005
    Posts
    154
    Hellow Symbian fellows,

    i am trying to wiew a bitmap on a S60 app using carbide. i did this simple task before using the previous MBM compilation in .mmp file. with carbide you do not have sucha thing. any ways, i managed to create the mbmdef file and i got my mbm in hte applicaiton directory under system\apps\MyApp. now i try to run the following usual code but my applicaiton leaves!!! i checked my mbg i checked the existance of mbm and all were where they should be.
    any idea why it is leaving???

    // in container constructl()
    ...
    _LIT(KPath, "\\system\\apps\\BitmapEx\\Bitmaps.mbm");
    bit = new (ELeave) CFbsBitmap();
    User::LeaveIfError(bit->Load(KPath, EMbmBitmapsSunset));
    ...

    // in container Draw()
    CWindowGc& gc = SystemGc();
    gc.DrawRect( aRect );

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You may try to check the error code returned by Load.
    Anyway, if your app is in system\apps\MyApp, why is it so sure that Bitmap.mbm exists in \system\apps\BitmapEx?

  3. #3
    Regular Contributor abolfoooud's Avatar
    Join Date
    Jan 2005
    Posts
    154
    thnax wizard hu
    the error code is -12 which is "Unable to find the specified folder" according to the SDK. but i triple checked my mbm file. it is int he proper folder as below:

    C:\Symbian\8.0a\S60_2nd_FP2_CW\Epoc32\release\winscw\udeb\z\system\apps\BitmapEx

    this is where my app and rsc are stored as well.
    any idea?

    cheers

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by abolfoooud
    it is int he proper folder as below:

    C:\Symbian\8.0a\S60_2nd_FP2_CW\Epoc32\release\winscw\udeb\z\system\apps\BitmapEx
    It is ok for the .rsc, but I would try to copy the .mbm to ...epoc32\data\z\system\apps\BitmapEx, and - if it still does not help - to the epoc32\winscw\c\sysem\apps\BitmapEx (in this last case, the drive letter will be necessary to be added to your path-constant).

Similar Threads

  1. Problem of using MIF and MBM together in 3.0
    By lukedau in forum Symbian User Interface
    Replies: 6
    Last Post: 2006-09-27, 17:29
  2. Building with another SDK in Carbide
    By fredgauchet in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-03-02, 11:29
  3. Getting images from different MBM file in ListBox
    By anoopd in forum Symbian User Interface
    Replies: 8
    Last Post: 2006-02-21, 06:34
  4. Issues with Carbide vs 2.0 installer!
    By kt10208 in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2006-01-16, 09:27
  5. Dynamic loading and converting to MBM
    By whitemoon in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-11-04, 04:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved