×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2009
    Posts
    200

    Question How should I define a descriptor length when I don't konw its length?

    I mean whether there is a way to define an uncertain descriptor using TBuf<length> and so on?
    and I don't want to waste any space.

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How should I define a descriptor length when I don't konw its length?

    Use the heap descriptor — HBufC

  3. #3
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,539

    Re: How should I define a descriptor length when I don't konw its length?

    Quote Originally Posted by sundy10 View Post
    I mean whether there is a way to define an uncertain descriptor using TBuf<length> and so on?
    and I don't want to waste any space.
    You might find this blog written by Jo Stichbury useful to refer when you have some confusions regarding descriptors http://descriptors.blogspot.com/

    Good Luck!

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    China
    Posts
    269

    Re: How should I define a descriptor length when I don't konw its length?

    If the length of buffer is uncertain before execution, you'd better allocate it in heap, that is use the HBufC class
    also you can use RBuf, which is a resizeable buffer descriptor
    Last edited by andy205214; 2009-09-16 at 16:53.
    I am a programmer,and I hope we can help each other and progress together

Similar Threads

  1. Can i use c++ functions in Open C
    By yvsandeep in forum Open C/C++
    Replies: 16
    Last Post: 2008-11-03, 02:08
  2. specific meaning of "Phonebook field type"
    By Atl antis in forum Symbian
    Replies: 0
    Last Post: 2007-04-23, 10:22
  3. py2sis problem with PyS60 1.3.8
    By taowu in forum Symbian
    Replies: 16
    Last Post: 2006-09-18, 02:47
  4. I don't understand '"1\t"<0x6BCD><0x725B>' thingy in ***.LOC files...
    By advocatee in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-08-26, 03:50

Posting Permissions

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