<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Char zu CString]]></title><description><![CDATA[<p>wie kann ich einen char zu CString konvertieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/50958/char-zu-cstring</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 08:58:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/50958.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Oct 2003 19:48:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Char zu CString on Sun, 05 Oct 2003 19:48:45 GMT]]></title><description><![CDATA[<p>wie kann ich einen char zu CString konvertieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/366438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/366438</guid><dc:creator><![CDATA[ka]]></dc:creator><pubDate>Sun, 05 Oct 2003 19:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to Char zu CString on Sun, 05 Oct 2003 20:11:05 GMT]]></title><description><![CDATA[<p>nur weil ich es grad offen habe, die mfcler wissens sicher besser...<br />
zumindest gehst sowas:</p>
<pre><code class="language-cpp">CString strText(&quot;Rechtschreigunb &quot;);
TCHAR ch1 = strText.GetAt(11);
strText.SetAt(11, strText[14]);
strText.SetAt(14, ch1);
</code></pre>
<p>zum zweiten gibt es einen überladenen konstruktor:</p>
<pre><code class="language-cpp">CString(TCHAR ch, int nRepeat = 1)
 Füllt den String mit nRepeat Kopien des Zeichens ch.
</code></pre>
<p>und sowas geht auch:</p>
<pre><code class="language-cpp">CString strFormatMe;
char *szM = &quot;Meter&quot;;
double dMPerMile = 1609.34;
strFormatMe.Format(&quot;Es kommen %f %s auf %d %s&quot;,
dMPerMile,szM,1,&quot;Meile.&quot;);
AfxMessageBox(strFormatMe);
</code></pre>
<p>so long</p>
]]></description><link>https://www.c-plusplus.net/forum/post/366449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/366449</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Sun, 05 Oct 2003 20:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to Char zu CString on Sun, 05 Oct 2003 20:16:22 GMT]]></title><description><![CDATA[<p>EDIT: alles gesagt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/366451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/366451</guid><dc:creator><![CDATA[CrazyOwl]]></dc:creator><pubDate>Sun, 05 Oct 2003 20:16:22 GMT</pubDate></item></channel></rss>