<?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 - How to use descriptor TPtr/TDes as class member - Comments</title>
 <link>http://www.newlc.com/topic-6752</link>
 <description>Comments for &quot;How to use descriptor TPtr/TDes as class member&quot;</description>
 <language>en</language>
<item>
 <title>How to use descriptor TPtr/TDes as class member</title>
 <link>http://www.newlc.com/topic-6752#comment-17665</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;hi Dishneau,&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you very much for this information. It helped so lot.&lt;br /&gt;But I have another problem. Can you please solve it?&lt;br /&gt;&lt;br /&gt;How can i assign value to the member variable iPtr (Tptr iPtr) and how to retrive it again. Its highly essential for my project.&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;&lt;br /&gt;Balaraju&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: dishneau&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;TPtr does not have a default constructor. &amp;nbsp;So in order to create a TPtr as a member variable in your class you must construct the TPtr using one of TPtrs provided constructors in your class&#039;s constructor initialization list.&lt;br /&gt;&lt;br /&gt;TPtr&#039;s constructors &lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;IMPORT_C TPtr16&amp;#40;TUint16 *aBuf,TInt aMaxLength&amp;#41;;&lt;br /&gt;IMPORT_C TPtr16&amp;#40;TUint16 *aBuf,TInt aLength,TInt aMaxLength&amp;#41;;&lt;/div&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;//Calling TPtr iPtr using the 1st constructor above&lt;br /&gt;CMyTestParm&amp;#58;&amp;#58;CMyTestParm&amp;#40;&amp;#41; &amp;#58; d&amp;#40;NULL,0&amp;#41;&lt;br /&gt;&amp;#123; &lt;br /&gt;&lt;br /&gt;&amp;#125; &lt;/div&gt;&lt;br /&gt;Remember, TPtr does not actually own data, it points to data. &amp;nbsp;So if you create a TPtr, you don&#039;t delete it.&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 08 Apr 2005 08:07:43 +0200</pubDate>
 <dc:creator>balaraju417</dc:creator>
 <guid isPermaLink="false">comment 17665 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to use descriptor TPtr/TDes as class member</title>
 <link>http://www.newlc.com/topic-6752#comment-17664</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;TPtr does not have a default constructor. &amp;nbsp;So in order to create a TPtr as a member variable in your class you must construct the TPtr using one of TPtrs provided constructors in your class&#039;s constructor initialization list.&lt;br /&gt;&lt;br /&gt;TPtr&#039;s constructors &lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;IMPORT_C TPtr16&amp;#40;TUint16 *aBuf,TInt aMaxLength&amp;#41;;&lt;br /&gt;IMPORT_C TPtr16&amp;#40;TUint16 *aBuf,TInt aLength,TInt aMaxLength&amp;#41;;&lt;/div&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;//Calling TPtr iPtr using the 1st constructor above&lt;br /&gt;CMyTestParm&amp;#58;&amp;#58;CMyTestParm&amp;#40;&amp;#41; &amp;#58; d&amp;#40;NULL,0&amp;#41;&lt;br /&gt;&amp;#123; &lt;br /&gt;&lt;br /&gt;&amp;#125; &lt;/div&gt;&lt;br /&gt;Remember, TPtr does not actually own data, it points to data. &amp;nbsp;So if you create a TPtr, you don&#039;t delete it.&lt;/div&gt;</description>
 <pubDate>Thu, 07 Apr 2005 19:46:12 +0200</pubDate>
 <dc:creator>dishneau</dc:creator>
 <guid isPermaLink="false">comment 17664 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to use descriptor TPtr/TDes as class member</title>
 <link>http://www.newlc.com/topic-6752#comment-17663</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;make a pointer.&lt;br /&gt; TPtr * d;&lt;/div&gt;</description>
 <pubDate>Thu, 07 Apr 2005 17:40:54 +0200</pubDate>
 <dc:creator>joker_pl</dc:creator>
 <guid isPermaLink="false">comment 17663 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to use descriptor TPtr/TDes as class member</title>
 <link>http://www.newlc.com/topic-6752</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-6752&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-6752#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Thu, 07 Apr 2005 15:23:34 +0200</pubDate>
 <dc:creator>balaraju417</dc:creator>
 <guid isPermaLink="false">7389 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
