Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor sundy10's Avatar
    Join Date
    May 2009
    Posts
    200
    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 Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    Use the heap descriptor — HBufC

  3. #3
    Nokia Developer Moderator Symbian_Neil's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,160
    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!
    - Neil R.Bhasme -

    Twitter: @Symbian_Neil

  4. #4
    Regular Contributor andy205214's Avatar
    Join Date
    Oct 2007
    Location
    China
    Posts
    269
    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. Replies: 16
    Last Post: 2008-12-09, 01:44
  2. Can i use c++ functions in Open C
    By yvsandeep in forum Open C/C++
    Replies: 16
    Last Post: 2008-11-03, 02:08
  3. specific meaning of "Phonebook field type"
    By Atl antis in forum Symbian C++
    Replies: 0
    Last Post: 2007-04-23, 10:22
  4. py2sis problem with PyS60 1.3.8
    By taowu in forum Python
    Replies: 16
    Last Post: 2006-09-18, 02:47
  5. 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
  •  
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