×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Feb 2005
    Location
    India
    Posts
    209

    Append value of a variable into TDesc8

    Hi,

    Can anyone tell the way of appending a variable to a TDesc8& parameter?

    ie, I have a function which takes TDesc8&. I want to pass the string "bytes=%d", Size where Size is a TInt variable.

    Please help.

    Thanking you,
    Anoop.

  2. #2
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    153
    Hi,

    TBuf<16> buffer16;

    TBuf8<32> buffer8;

    buffer16.Format(_L("bytes=%d"),Size);

    buffer8.Copy(buffer16);

    Pass this buffer8 as an argument in your function.

    BR,
    Sunil

Posting Permissions

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