×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    How to typecast?????????

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    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
  •  
×