×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    24

    converting TDes8* to char* ?

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