×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    77

    Compliation error with CbitmapScaler

    Hi all..i keep getting this compliation error which i cannot figure out what is wrong..can ayone help me...

    Error : function call '[CBitmapScaler].Scale({lval} CMessageServer, {lval} CFbsBitmap, {lval} CFbsBitmap, {lval} TSize, TTrue)' does
    not match
    MESSAGESERVER.cpp line 716

    Error : 'CBitmapScaler::Scale(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, int)' (non-static)
    MESSAGESERVER.cpp line 716

    Error : 'CBitmapScaler::Scale(TRequestStatus *, CFbsBitmap &, const TSize &, int)' (non-static)
    MESSAGESERVER.cpp line 716

    Error : Compile failed


    I have checked my calling method...it seems ok to me...

    This is my calling function
    iBitmapScaler->Scale(iStatus,*iBitmap,*iBitmap_Scaled, bitmap_Scaled_Size, ETrue);

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: Compliation error with CbitmapScaler

    Quote Originally Posted by bballbeng
    This is my calling function
    iBitmapScaler->Scale(iStatus,*iBitmap,*iBitmap_Scaled, bitmap_Scaled_Size, ETrue);
    CBitmapScaler::Scale() has 2 overloads:
    Code:
    CBitmapScaler::Scale(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, int)
    CBitmapScaler::Scale(TRequestStatus *, CFbsBitmap &, const TSize &, int)
    You are trying to call something like
    Code:
    CBitmapScaler::Scale(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, const TSize &, int)
    So I think you should either remove iBitmap_Scaled or bitmap_Scaled_Size from the function call.
    Regards,
    ivey

Similar Threads

  1. Compliation error
    By bballbeng in forum Symbian
    Replies: 3
    Last Post: 2006-07-28, 05:44
  2. CBitmapRotator and/or CBitmapScaler
    By shadow-2005 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-04-07, 09:52
  3. CBitmapScaler issue
    By TrickLo in forum Symbian
    Replies: 1
    Last Post: 2004-11-22, 04:50

Posting Permissions

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