Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Symbian > Re: can we use ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 65 of 157
Post > Topic >>

Re: can we use int instead of Tint ?

by MW Ron <mwron@[EMAIL PROTECTED] > Jun 14, 2004 at 11:54 AM

In article <def721d7.0406072208.1e68a647@[EMAIL PROTECTED]
>,
 gauravj_home@[EMAIL PROTECTED]
 (Gaurav) wrote:

>Hi,
> I am new to symbian. I couldn't find a direct answer to the following
>question in the symbian book i am reading.
>
>why do we use TInt instead of int int symbian. If we use int instead
>will it give complation error. What problem can could be expected in
>using int instead of Tint.

The reason for using typedef instead of the standard types is for future 
compatibility.  That is if the processors change or something your old 
code still works in new systems.  It is a pretty standard OS practice.

>what are the equalents of double and float in symbian. The first
>question also applies to the double and float equalants if any

You can use int instead of TInt without compilation errors.  Symbian 
just typedef'ed the basic types to their naming convention in e32def.h.  
Here's a snippet:

typedef signed int TInt;
typedef unsigned int TUint;
typedef float TReal32;
typedef double TReal64;
typedef double TReal;

Ron

-- 
  Metrowerks, one of the worldıs top 100 companies and influencers 
     in the software development industry. - SD Times  May 2004
               http://www.sdtimes.com/2004sdt100.htm
       
                  Metrowerks, maker of CodeWarrior 
Ron Liechty - MWRon@[EMAIL PROTECTED]
 - http://www.metrowerks.com
 




 2 Posts in Topic:
can we use int instead of Tint ?
gauravj_home@[EMAIL PROTE  2004-06-07 23:08:56 
Re: can we use int instead of Tint ?
MW Ron <mwron@[EMAIL P  2004-06-14 11:54:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:31:23 CDT 2008.