Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2006

    Convert HBufC8 to TDesC8

    Hi all,

    I have a problem in symbian 9.2 . It is my code and it is working fine on 8.0 but It is not working on 9.2 there is a compile time error. so please help me .

    My code is

    HBufC8* ashu = HBufC8::NewL(file_size);

    RFile infile.Read(ashu->Des());// Here is the problem.
    // Second method is
    // RFile infile.Read(*ashu); // problem is here also.

    Its urgent please help

    Thanks in Advance.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: Convert HBufC8 to TDesC8

    you can not use constants for adding stuff into them, instead try this:

    TPtr8 hjelp(ashu->Des()));
    RFile infile.Read(hjelp);

  3. #3
    Regular Contributor
    Join Date
    May 2006

    Re: Convert HBufC8 to TDesC8

    Thanks Yucca for immediate reply.


Similar Threads

  1. Need one HTTP client example
    By vinayakak in forum Symbian Networking & Messaging (Closed)
    Replies: 15
    Last Post: 2008-01-06, 06:44
  2. How to convert the Exif image data in HBufC8 to CFbsBitmap
    By whitewinds in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-12-25, 09:28
  3. can i convert HBufC8 to TDesC8 like this
    By praveena in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-10-03, 09:22
  4. convert HBufC8 to HBufC16
    By Rx-lee in forum Symbian
    Replies: 5
    Last Post: 2004-09-10, 06:22
  5. how to convert TBuf to TDesC8
    By zhang_guoqing in forum Symbian
    Replies: 1
    Last Post: 2003-03-26, 16:07

Posting Permissions

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