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