<?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[wchar_t* text? zuweisung]]></title><description><![CDATA[<p>warum ist sowas falsch und wie müsste man es richtig machen:</p>
<p>wchar_t* w1 = L&quot;Teststring&quot;;<br />
wcscat(w1,L&quot;...&quot;);<br />
wcscat(w1,L&quot;1&quot;);</p>
<p>ist das bei char* ebenfalls falsch?:</p>
<p>char* s1 = &quot;Teststring&quot;;<br />
strcat(s1,&quot;...&quot;);<br />
strcat(s1,&quot;1&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159746/wchar_t-text-zuweisung</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 17:03:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159746.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Sep 2006 14:23:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wchar_t* text? zuweisung on Mon, 18 Sep 2006 14:23:14 GMT]]></title><description><![CDATA[<p>warum ist sowas falsch und wie müsste man es richtig machen:</p>
<p>wchar_t* w1 = L&quot;Teststring&quot;;<br />
wcscat(w1,L&quot;...&quot;);<br />
wcscat(w1,L&quot;1&quot;);</p>
<p>ist das bei char* ebenfalls falsch?:</p>
<p>char* s1 = &quot;Teststring&quot;;<br />
strcat(s1,&quot;...&quot;);<br />
strcat(s1,&quot;1&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1139668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1139668</guid><dc:creator><![CDATA[Rio1]]></dc:creator><pubDate>Mon, 18 Sep 2006 14:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t* text? zuweisung on Mon, 18 Sep 2006 14:52:04 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das ist beides falsch. Denn so deklarierst du nur konstante String-Literale. Zwar fehlt des const, aber verändern darfst du sie trotzdem nicht.<br />
Dazumust du schon selber erstmal Spei9cher anlegen und dann belegen.<br />
Einfacher würde das mit std::string gehen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1139698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1139698</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 18 Sep 2006 14:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t* text? zuweisung on Mon, 18 Sep 2006 15:29:20 GMT]]></title><description><![CDATA[<p>In dem Fall std::wstring</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1139741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1139741</guid><dc:creator><![CDATA[Thomas ** 0]]></dc:creator><pubDate>Mon, 18 Sep 2006 15:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t* text? zuweisung on Tue, 19 Sep 2006 08:51:37 GMT]]></title><description><![CDATA[<p>Und wenn du unbedingt mit puren char/wchar_t's arbeiten willst, nimm statt der Pointer lieber Arrays (aber bitte mit expliziter Größenangabe, damit die wcscat()-Aufrufe genug Platz finden).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1140170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1140170</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 19 Sep 2006 08:51:37 GMT</pubDate></item></channel></rss>