<?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 convert const char* to TDesC8? - Comments</title>
 <link>http://www.newlc.com/topic-5588</link>
 <description>Comments for &quot;How to convert const char* to TDesC8?&quot;</description>
 <language>en</language>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15228</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;not at all &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 17 Feb 2005 12:08:51 +0100</pubDate>
 <dc:creator>Core_RUS_</dc:creator>
 <guid isPermaLink="false">comment 15228 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15227</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thank you Core for your fast and great help!!!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Balint Toth[HUN]&lt;/div&gt;</description>
 <pubDate>Thu, 17 Feb 2005 11:06:08 +0100</pubDate>
 <dc:creator>balinttoth</dc:creator>
 <guid isPermaLink="false">comment 15227 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15226</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;unsigned char* &amp;nbsp;IntToStr&amp;#40;int value, unsigned char* pString&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt; &amp;nbsp; &amp;nbsp;TBuf8&amp;lt;10&amp;gt; &amp;nbsp; tmp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;TInt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;len;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp;tmp.Num&amp;#40;value&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;len = tmp.Length&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;Mem&amp;#58;&amp;#58;Copy&amp;#40;pString,tmp.Ptr&amp;#40;&amp;#41;,len&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;pString&amp;#91;len&amp;#93; = 0;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;return pString;&lt;br /&gt;&amp;#125;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 17 Feb 2005 08:05:57 +0100</pubDate>
 <dc:creator>Core_RUS_</dc:creator>
 <guid isPermaLink="false">comment 15226 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15225</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Sorry, I wasn&#039;t clear enought.&lt;br /&gt;&lt;br /&gt;So I got a number what I want to convert to a string. Under windows I do it with the &lt;br /&gt;&lt;br /&gt;_fcvt&lt;br /&gt;&lt;br /&gt;function, which is not supported under symbian. I saw that TDes has a .Num() function. But how can I add a value to the TDes (a string)?&lt;br /&gt;Than I have to copy it back to a char* with &lt;br /&gt;&lt;br /&gt;strcat.&lt;br /&gt;&lt;br /&gt;(I am porting a c code.)&lt;br /&gt;&lt;br /&gt;But I cannot add value to TDes, and cannot cast it to be able to copy it back.&lt;br /&gt;&lt;br /&gt;Thanks for your help in advance!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Balint Toth&lt;/div&gt;</description>
 <pubDate>Wed, 16 Feb 2005 18:24:47 +0100</pubDate>
 <dc:creator>balinttoth</dc:creator>
 <guid isPermaLink="false">comment 15225 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15224</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hello!&lt;br /&gt;&lt;br /&gt;Thanks for the fast reply and your help, its fantastic, its working!:)&lt;br /&gt;&lt;br /&gt;BTW I have an additional question: how can I convert a TDes to char*?&lt;br /&gt;&lt;br /&gt;Thanks again in advance!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Balint Toth&lt;/div&gt;</description>
 <pubDate>Wed, 16 Feb 2005 18:05:22 +0100</pubDate>
 <dc:creator>balinttoth</dc:creator>
 <guid isPermaLink="false">comment 15224 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15223</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;here you go:&lt;br /&gt;&lt;br /&gt;const char* CALLSENDER_EVENT;&lt;br /&gt;TPtrC8 ptr((const TUint8*)CALLSENDER_EVENT));&lt;/div&gt;</description>
 <pubDate>Wed, 16 Feb 2005 15:00:10 +0100</pubDate>
 <dc:creator>amir</dc:creator>
 <guid isPermaLink="false">comment 15223 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588#comment-15222</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TInt&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;namelen;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;namelen = User&amp;#58;&amp;#58;StringLength&amp;#40;pString&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TPtrC8&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;tmp&amp;#40;pString,namelen&amp;#41;;&lt;/div&gt;pString is C-style string&lt;/div&gt;</description>
 <pubDate>Wed, 16 Feb 2005 14:58:04 +0100</pubDate>
 <dc:creator>Core_RUS_</dc:creator>
 <guid isPermaLink="false">comment 15222 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to convert const char* to TDesC8?</title>
 <link>http://www.newlc.com/topic-5588</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-5588&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-5588#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Wed, 16 Feb 2005 13:46:53 +0100</pubDate>
 <dc:creator>balinttoth</dc:creator>
 <guid isPermaLink="false">6310 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
