Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User dreamix's Avatar
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    24
    how do i convert a TDes8* to a character string and viceversa? i just want to write a buffer into a file using fwrite().

    didnt find anything useful either in the docu nor elsewhere..

    thanks for your help!

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Better to use RFile directly is possible, since fwrite will call RFile class to handle the write, so it is slower and wastes resources.

    anyway, you could try this:

    TUint8 *Charbuf =(TUint8 *) SmallBuf.Ptr();

    where SmallBuf is TDes8 .

    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