<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - ETrue Comparison error - Comments</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error</link>
 <description>Comments for &quot;ETrue Comparison error&quot;</description>
 <language>en</language>
<item>
 <title>Re: ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error#comment-41494</link>
 <description>&lt;p&gt;Thanks , 4 Ur replay&lt;/p&gt;

&lt;p&gt;Mr RenÃ© Brunner&lt;br /&gt;
I m agree with U , Opertaor (==)is not defined .&lt;/p&gt;

&lt;p&gt;Mr Buttington&lt;/p&gt;

&lt;p&gt;&quot; I think the it might be designed deliberatly that it generates a compilation error &quot;&lt;/p&gt;

&lt;p&gt;I m also agree with Ur comment ,&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Sat, 15 Sep 2007 05:43:38 +0200</pubDate>
 <dc:creator>sameer.chaudhari</dc:creator>
 <guid isPermaLink="false">comment 41494 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error#comment-41493</link>
 <description>&lt;p&gt;I think the it might be designed deliberatly that it generates a compilation error&lt;/p&gt;</description>
 <pubDate>Fri, 14 Sep 2007 20:38:04 +0200</pubDate>
 <dc:creator>Mr. Buttington F. Phucque Lewis</dc:creator>
 <guid isPermaLink="false">comment 41493 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error#comment-41492</link>
 <description>&lt;p&gt;TBool is defined in E32DEF.H as&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;typedef int TBool;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;but ETrue and EFalse, a bit strangely, in E32STD.H as&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;enum TFalse {EFalse=FALSE};&lt;br /&gt;enum TTrue {ETrue=TRUE};&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;Now, if you want to compare with == an int and a value of an enumeration type, a special operator overload must be present. It isn&#039;t, that&#039;s why your code does not compile.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 14 Sep 2007 18:21:31 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 41492 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error#comment-41491</link>
 <description>&lt;p&gt;Thnxs 4 ur Immediate reaply eric&lt;/p&gt;

&lt;p&gt;But i want to figure out what problem in my code&lt;/p&gt;

&lt;p&gt;Sorry ........ I m novice&lt;/p&gt;</description>
 <pubDate>Fri, 14 Sep 2007 17:36:32 +0200</pubDate>
 <dc:creator>sameer.chaudhari</dc:creator>
 <guid isPermaLink="false">comment 41491 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error#comment-41490</link>
 <description>&lt;p&gt;You should not test boolean against ETrue or EFalse but use the following:&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
TBool iFlag = EFalse;
if(iFlag)
{ 
    .... Do something if iFlag is ETrue ...
}

if(!iFlag)
{
     .... Do something if iFlag is EFalse...
}
&lt;/pre&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 14 Sep 2007 17:34:14 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 41490 at http://www.newlc.com</guid>
</item>
<item>
 <title>ETrue Comparison error</title>
 <link>http://www.newlc.com/en/forum/etrue-comparison-error</link>
 <description>&lt;p&gt;Hi Guyes ,&lt;/p&gt;

&lt;p&gt;TBool iFlag = EFalse;&lt;br /&gt;
if(iFlag == ETrue)&lt;/p&gt;

&lt;p&gt;if i compile the above code i dnt get any error ,&lt;br /&gt;
If i Build it then i got this error&lt;/p&gt;

&lt;p&gt;Undefined symbol: &#039;int operator==(int, enum TTrue) (??8@YAHHW4TTrue@@@Z)&#039;&lt;/p&gt;

&lt;p&gt;I m currently using Carbide.c++ express edition v1.2.2 Build 5&lt;/p&gt;

&lt;p&gt;I Know there is alternate solution available for this code , like ...if(iFlag) &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/etrue-comparison-error&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/etrue-comparison-error#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Fri, 14 Sep 2007 17:30:01 +0200</pubDate>
 <dc:creator>sameer.chaudhari</dc:creator>
 <guid isPermaLink="false">18980 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
