×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    4

    Symbian C++ array

    wow, looks like login method to this forum was changed, I can't login to my account

    anyway, I write application on android platform and I want re-writing its code to symbian C++...

    where I can get information about symbian C++ basic command?

    for example: I want to make a command base this concept :
    Code:
    if word > 10
    this if word > 10 means if strings bigger than 10.

    how I can make like that in symbian c++ ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Symbian C++ array

    If you mean the length, there is such method
    Code:
    if(descriptor.Length()>10)

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    4

    Re: Symbian C++ array

    thx for fast response!

    before that I search on this forum about string on symbian and found
    Code:
    TDesC::Length
    now if I see your code I became a bit confused
    Code:
    if(descriptor.Length()>10)
    if(descriptor.Length()>10)
    that code I bold above, what it means? I must write describtor in every code?

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: Symbian C++ array

    TDesC is the base class for the descriptors & Length is a member of that class. The word 'descriptor' is just a variable name for a descriptor(to exemplify here) & of course to access the members of a class you need to use a dot('.') or an arrow('->') or double colon('::') depending upon if you are accessing the member directly or using a pointer.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Symbian C++ array

    Well, in Symbian C++ there are many types for storing strings. TDesC is a parent type of them. And "Des" actually abbreviates "descriptor", this is how Symbian C++ refers to bounded character and byte arrays.
    However for your actual question: in Java, java.lang.String is the string type, and length() is the method for getting the length of a string. Would you really write
    Code:
    if(java.lang.String.length()>10)
    ? Or would you rather have a variable of type String, and invoke length() on that variable? Now in my example code, "descriptor" is the name of such variable.
    Of course you can imagine CharSequence in place of String, that also has a length() method.

  6. #6
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: Symbian C++ array

    More generally, you might want to check out the book on wiki - Fundamentals of Symbian C++/Descriptors and other topics on "Essential Idioms"

  7. #7
    Registered User
    Join Date
    Dec 2012
    Posts
    4

    Re: Symbian C++ array

    thankx alot! I more closer to finishing my apps!

    now I need these files to tracking error (I work on visual studio 2003):

    S60_S80_SDK_Help_for_Carbide_vs_20.msi.
    o S60_30_SDK_Help_for_Carbide_vs_20.msi

    where I can download this files?

  8. #8
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: Symbian C++ array

    Any specific reasons of using Carbide.vs as its no longer supported by Nokia. Why not work on Carbide.C++V2.0 & above?

    With regards to the files , i do not think they are anymore hosted on Nokia developer website.

Similar Threads

  1. How to have a string array in Symbian
    By nikita51 in forum Symbian
    Replies: 21
    Last Post: 2011-04-07, 11:19
  2. Is big array acceptable for symbian.
    By is03zong in forum Symbian
    Replies: 6
    Last Post: 2010-10-19, 17:54
  3. Symbian Array Efficiency
    By jp19 in forum Symbian
    Replies: 1
    Last Post: 2010-02-07, 07:12
  4. Array in symbian
    By Shweta.Hegde in forum Symbian
    Replies: 5
    Last Post: 2009-05-12, 14:33
  5. playing a pcm array on symbian
    By nonoangel in forum Audio
    Replies: 7
    Last Post: 2007-06-12, 04:33

Posting Permissions

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