×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    31

    Problem in using CMdaBitmapScaler in Symbian 7.0

    Hello People,

    I am trying to scale some bitmaps by using the class CMdaBitmapScaler under SDK 2.1 for Symbian OS 7.0 on Borland C++ BuilderX

    I am facing a problem when the application tries to compile & it gives me the following error


    "mdaframeinfo.h": C2371: 'TFrameInfo' : redefinition; different basic types at line 41


    What I have figured out from the above error message is the above file "mdaframeinfo.h" is included in the header file for CMdaBitmapScaler which is MdaImageConverter.h

    Also the file MdaImageConverter.h consists of TFrameInfoMCL which is 'typedef' of TFrameInfo


    Kindly help me out in this matter ASAP



    Waiting for a reply,

    Yogesh

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Problem in using CMdaBitmapScaler in Symbian 7.0

    Hi,

    it's SDK problem!!! I had the same error I solved it by

    #include <Icl\ImageData.h>
    #if !defined(__WITHIN_MCI_LIBRARY)
    #define __WITHIN_MCI_LIBRARY
    #endif

    It' because icl\imagedata.h and in mdaframeinfo.h is definiton:


    #if !defined(__WITHIN_MCI_LIBRARY)
    // within the MediaClientImage library itself, TFrameInfo is the ICL version. Normally will be TFrameInfoMCL
    typedef TFrameInfoMCL TFrameInfo;
    #endif !defined(__WITHIN_MCI_LIBRARY)


    so if you include both files in wrong order you'll have this problem

    Bye
    STeN

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    31

    Re: Problem in using CMdaBitmapScaler in Symbian 7.0

    Hi Sten,

    Thankx for your response

    I am a bit confused about the solution you have provided

    You said that its an SDK problem.... could you please tell me where should I use the solution that you have provided me i.e;

    #include <Icl\ImageData.h>
    #if !defined(__WITHIN_MCI_LIBRARY)
    #define __WITHIN_MCI_LIBRARY
    #endif

    Should I modify the header file in the SDK itself OR should I make any changes to my application with the above mentioned code ??

    Kindly let me know ASAP





    Many Thanks,

    Yogesh

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Problem in using CMdaBitmapScaler in Symbian 7.0

    Hi,

    sorry if I didn't explain it more cleanly. The problem is that type TFrameInfo is in two header files in SDK and if you include in the project both headers in wrong order you have two different definitions of the same type.

    In mdaframeinfo.h is the old definiton of the class and in the ImageData.h is the new definiton. In mdaframeinfo.h you'll find this:

    #if !defined(__WITHIN_MCI_LIBRARY)
    typedef TFrameInfoMCL TFrameInfo;
    #endif !defined(__WITHIN_MCI_LIBRARY)

    This mean that if within the MediaClientImage library itself is defined ICL verisin of TFrameInfo it will NOT be used. So immediately after I include ImageData.h I define __WITHIN_MCI_LIBRARY and the definiton from mdaframeinfo.h will not be used:

    #include <Icl\ImageData.h>
    #if !defined(__WITHIN_MCI_LIBRARY)
    #define __WITHIN_MCI_LIBRARY
    #endif

    Question is what happend if you include it in reverse order... - you can always change the headers of SDK...

    Look also here:
    http://discussion.forum.nokia.com/fo...IN_MCI_LIBRARY
    http://discussion.forum.nokia.com/fo...ght=TFrameInfo

    Bye
    STeN

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  2. TCP/IP Socket problem in Symbian
    By zwgoal in forum Symbian
    Replies: 1
    Last Post: 2005-08-24, 13:43
  3. Solution to select IAP without prompting in symbian 7.0.
    By rakesh.jaiswal in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-25, 10:13
  4. Replies: 0
    Last Post: 2004-05-07, 11:45
  5. Problem in compatability of compiled code on symbian OS v6.1 and v7.0
    By pratbrat77 in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-11-23, 21:51

Posting Permissions

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