<?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 - sending _LIT as a parameter - Comments</title>
 <link>http://www.newlc.com/forum/sending-lit-parameter</link>
 <description>Comments for &quot;sending _LIT as a parameter&quot;</description>
 <language>en</language>
<item>
 <title>Re: sending _LIT as a parameter</title>
 <link>http://www.newlc.com/forum/sending-lit-parameter#comment-45210</link>
 <description>&lt;p&gt;You shouldn&#039;t be using a type of TLitC anywhere, they are effectively a hidden class type and you shouldn&#039;t use them. &lt;br /&gt;
Make your parameter const TDesC&amp; &lt;/p&gt;</description>
 <pubDate>Wed, 19 Mar 2008 17:32:26 +0100</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45210 at http://www.newlc.com</guid>
</item>
<item>
 <title>sending _LIT as a parameter</title>
 <link>http://www.newlc.com/forum/sending-lit-parameter</link>
 <description>&lt;p&gt;i&#039;ve got a piece of code similiar to the following:&lt;/p&gt;

&lt;p&gt;_LIT(a,&quot;asdf&quot;);&lt;br /&gt;
object = new (ELeave) class;&lt;br /&gt;
object-&gt;method(a);&lt;/p&gt;

&lt;p&gt;and i&#039;ve set the class::method to receive a parameter of TLitC&lt;4&gt; which works, but i wish to use the method for varying lengths of strings and it seems to require a fixed length for it&lt;/p&gt;

&lt;p&gt;so what should i use as the parameter instead of TLitC&lt;#&gt; ?&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/sending-lit-parameter&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/sending-lit-parameter#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Wed, 19 Mar 2008 14:38:13 +0100</pubDate>
 <dc:creator>Kerpele</dc:creator>
 <guid isPermaLink="false">20530 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
