×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    252

    how to create array of raarray type

    hi all,

    can anyone please tell me how to create array of RArray<char*> temp;


    THanks

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: how to create array of raarray type

    Hi,

    There are many buffers in Symbian why don't you use them like
    HBufC, TBuf etc you could easily create them and it is not a good practise to use native datatype but you could use symbian datatypes
    You could declare RArray<TBuf> array;

    you could allocate memory for it like
    _LIT( KSymbian, "Symbian" );
    TBuf<20> member( KSymbian() );
    array.Append( member );

    Hope you have understood my concern.
    Regards,
    Sriky

  3. #3
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: how to create array of raarray type

    Hi,
    Since you are using an array of pointers you can use RPointerArray which yuo can declare as RPointerArray<char*> and just start appending the pointers to it.
    You can store the pointers in descriptor format and then convert them to char if that is your requirement. Follow this link to see how it can be achieved
    http://wiki.forum.nokia.com/index.ph...and_Vice_Versa
    Maximus
    S60 Developer
    Impossible is nothing

  4. #4
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    252

    Re: how to create array of raarray type

    Quote Originally Posted by yogpan View Post
    Hi,
    Since you are using an array of pointers you can use RPointerArray which yuo can declare as RPointerArray<char*> and just start appending the pointers to it.
    You can store the pointers in descriptor format and then convert them to char if that is your requirement. Follow this link to see how it can be achieved
    http://wiki.forum.nokia.com/index.ph...and_Vice_Versa
    Hi yogpan, Thanks for ur response.But i think u don't understand what i am trying to say.

    I am trying to create array of followong variables.

    RArray<char*> temp1;
    RArray<char*> temp2;
    ........
    ......
    RArray<char*> tempn-1;
    RArray<char*> tempn;

    Now i want to store refernece of these rarray type (temp,temp1....)in an array.
    Thanks

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Smile Re: how to create array of raarray type

    Quote Originally Posted by deepakk View Post
    Hi yogpan, Thanks for ur response.But i think u don't understand what i am trying to say.

    I am trying to create array of followong variables.

    RArray<char*> temp1;
    RArray<char*> temp2;
    ........
    ......
    RArray<char*> tempn-1;
    RArray<char*> tempn;

    Now i want to store refernece of these rarray type (temp,temp1....)in an array.
    Thanks
    I guess you want to create a two dimensional array you could follow this link http://wiki.forum.nokia.com/index.ph...ray_in_Symbian
    Regards,
    Sriky

Similar Threads

  1. Grid app is crashing... need urgent help...
    By shankha in forum Symbian
    Replies: 5
    Last Post: 2010-10-19, 12:07
  2. Error when trying to create image from Byte array
    By chordfone in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-11-16, 00:34
  3. SIP content type
    By hlothman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-05-17, 09:26
  4. how to create a grid
    By ddhungry in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-11-27, 08:08
  5. Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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