<?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 - porting 8.1 to 9.x (ReadL) - Comments</title>
 <link>http://www.newlc.com/forum/porting-81-9x-readl</link>
 <description>Comments for &quot;porting 8.1 to 9.x (ReadL)&quot;</description>
 <language>en</language>
<item>
 <title>Re: porting 8.1 to 9.x (ReadL)</title>
 <link>http://www.newlc.com/forum/porting-81-9x-readl#comment-44053</link>
 <description>&lt;p&gt;The singnature of &quot;ReadL&quot; method is &lt;/p&gt;

&lt;p&gt;&lt;code&gt;void RMessagePtr2::ReadL(TInt aParam, TDes16 &amp;amp;aDes, TInt aOffset=0)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So instead specifying &quot;pD&quot; in ReadL, the index of the descriptor argument should be specified.&lt;/p&gt;

&lt;p&gt;Inyour case index=0 (since reading first argument)&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;HBufC8* writeBuf=HBufC8::New(desLen);&lt;br /&gt;TPtr initptr = writeBuf-&amp;gt;Des();&lt;br /&gt;TRAP(res,Message().ReadL(0,initptr));&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 23 Jan 2008 11:42:19 +0100</pubDate>
 <dc:creator>raghav_an</dc:creator>
 <guid isPermaLink="false">comment 44053 at http://www.newlc.com</guid>
</item>
<item>
 <title>porting 8.1 to 9.x (ReadL)</title>
 <link>http://www.newlc.com/forum/porting-81-9x-readl</link>
 <description>&lt;p&gt;hi all&lt;/p&gt;

&lt;p&gt;i am porting the code written in 8.1 to 9.x &lt;/p&gt;

&lt;p&gt;am facing problem in the below piece of code&lt;/p&gt;

&lt;p&gt;TInt res;&lt;br /&gt;
 const TAny* pD=Message().Ptr0();&lt;br /&gt;
 TInt desLen=Message().Client().GetDesLength(pD);&lt;br /&gt;
 HBufC8* writeBuf=HBufC8::New(desLen);&lt;br /&gt;
 TPtr initptr = writeBuf-&gt;Des();&lt;br /&gt;
 TRAP(res,Message().ReadL(pD,initptr));&lt;/p&gt;

&lt;p&gt;I know the above api&#039;s has been depre &lt;img src=&quot;/sites/all/modules/smileys/packs/example/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; /&gt; cated in 9.x&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/porting-81-9x-readl&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/porting-81-9x-readl#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Wed, 23 Jan 2008 05:42:19 +0100</pubDate>
 <dc:creator>amjedab</dc:creator>
 <guid isPermaLink="false">20054 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
