Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User ramanathan1's Avatar
    Join Date
    Aug 2004
    Posts
    11
    Dear friends,
    I am having a function like this :

    void get(const TDesC& aText)
    {
    }

    But I have a variable of type TBuf<8>
    that is,
    TBuf8<6> readbuf;

    I passed like this : get(readbuf);

    How i have to typecast it to get the desired output.

    Thanx in advance

    urs,
    ram

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    can you define your variable as TBuf, instead of TBuf8. Then it would work.

    Othervise you could make either HBufC or TBuf type of temporal variable that you use when supplying the string to the function.

    yucca

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