-
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 [/CODE]
this [B]if word > 10[/B] means [U]if strings bigger than 10[/U].
how I can make like that in symbian c++ ?
-
Re: Symbian C++ array
If you mean the length, there is such method[CODE]if(descriptor.Length()>10)[/CODE]
-
Re: Symbian C++ array
thx for fast response! :D
before that I search on this forum about string on symbian and found [CODE]TDesC::Length[/CODE]
now if I see your code I became a bit confused [CODE]if(descriptor.Length()>10)[/CODE]
if([B]descriptor[/B].Length()>10)
that code I bold above, what it means? I must write [B]describtor[/B] in every code?
-
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.
-
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)[/CODE]? 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.
-
Re: Symbian C++ array
More generally, you might want to check out the book on wiki - [URL="http://www.developer.nokia.com/Community/Wiki/Fundamentals_of_Symbian_C%2B%2B/Descriptors"]Fundamentals of Symbian C++/Descriptors[/URL] and other topics on "[URL="http://www.developer.nokia.com/Community/Wiki/Portal:Symbian_C%2B%2B_Essential_Idioms"]Essential Idioms[/URL]"
-
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?
-
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.