diference between Int and TInt

Login to reply to this topic.
Fri, 2005-08-12 12:02
Joined: 2005-04-07
Forum posts: 23
Is there any diference between Int and TIntHuh

Thanks!


Fri, 2005-08-12 13:02
Joined: 2005-06-08
Forum posts: 53
Re: diference between Int and TInt
"int" and "TInt"?
Fri, 2005-08-12 13:03
Joined: 2005-06-07
Forum posts: 22
Re: diference between Int and TInt
Yes, in Symbian C++ you have to use TInt and not int...
Fri, 2005-08-12 15:22
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: diference between Int and TInt
First:

Code:
typedef signed int TInt;

Second: http://www.newlc.com/article.php3?id_article=3.

Third: Symbian OS overrides the basic C types. One of the reasons is that it follows its own naming convention (basic types start with T), other might be that it's independent of the underlying integer representation.

tOtE

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Sun, 2005-08-14 14:41
Joined: 2005-03-31
Forum posts: 173
Re: diference between Int and TInt
Well, U always use TInt instead of int though it wont give any compiler time error
TInt is used to solve the problem of 16-bit,32-bit or 64-bit representation of C++ compiler
e.g VC++  uses 4 bytes to represent int while turbo uses 2 bytes for int representation
So  to make integer representation portable to armi  irrespective of compiler used to build applicaiton, all built- in types are wrapped


  • Login to reply to this topic.