×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    33

    Angry why this sevral sentence have error?

    TBuf8<30> buf;
    TInt iNum = 20;
    _LIT(KFormat1,"%d");
    buf.Format( KFormat1 , iNum ); //error 1
    NEikonEnvironment::MessageBox(buf); //error 2


    the error is :

    (1)TDes8::Format can't transfer const TLitC<S> to TRefByValue<T>
    (2)NEikonEnvironment::MessageBox” can't transfer “TBuf8<S>” to “const TDesC &”



    how can it correct it ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: why this sevral sentence have error?

    just change:
    TBuf8<30> buf;
    to
    TBuf<30> buf;

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    33

    Angry Re: why this sevral sentence have error?

    Quote Originally Posted by symbianyucca View Post
    just change:
    TBuf8<30> buf;
    to
    TBuf<30> buf;

    does NEikonEnvironment::MessageBox(xx) can't receive the
    TBuf8 type???

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: why this sevral sentence have error?

    How does the function definition look like ?

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  3. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  4. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  5. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

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