<?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[Fehlermeldung bei strcpy]]></title><description><![CDATA[<p>Hi Leute,<br />
ich habe ein Problem mit strcpy. Ich möchte folgenden String kopieren:</p>
<p>strcpy(logFont.lfFaceName, &quot;Times New Roman&quot;);</p>
<p>logFont.lfFacName ist anscheinend vom Typ Char.</p>
<p>Der Fehler:<br />
error C2664: 'strcpy': Konvertierung des Parameters 1 von 'WCHAR [32]' in 'char *' nicht möglich</p>
<p>Wie kann ich die richtige Konvertierung vornehmen?</p>
<p>Bin in C++ Anfänger und weiss deshalb nicht wie es geht.</p>
<p>Vielen Dank in Voraus.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/155640/fehlermeldung-bei-strcpy</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 15:52:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/155640.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Aug 2006 09:42:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung bei strcpy on Tue, 08 Aug 2006 09:42:15 GMT]]></title><description><![CDATA[<p>Hi Leute,<br />
ich habe ein Problem mit strcpy. Ich möchte folgenden String kopieren:</p>
<p>strcpy(logFont.lfFaceName, &quot;Times New Roman&quot;);</p>
<p>logFont.lfFacName ist anscheinend vom Typ Char.</p>
<p>Der Fehler:<br />
error C2664: 'strcpy': Konvertierung des Parameters 1 von 'WCHAR [32]' in 'char *' nicht möglich</p>
<p>Wie kann ich die richtige Konvertierung vornehmen?</p>
<p>Bin in C++ Anfänger und weiss deshalb nicht wie es geht.</p>
<p>Vielen Dank in Voraus.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1112792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1112792</guid><dc:creator><![CDATA[xthing]]></dc:creator><pubDate>Tue, 08 Aug 2006 09:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung bei strcpy on Tue, 08 Aug 2006 09:47:00 GMT]]></title><description><![CDATA[<p>Ist WCHAR ein typedef auf wchar_t?<br />
Da würde evtl wcscpy helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1112797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1112797</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 08 Aug 2006 09:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung bei strcpy on Tue, 08 Aug 2006 16:52:55 GMT]]></title><description><![CDATA[<p>Du musst _tcscpy aud &lt;tchar.h&gt; benutzen, da der Member lfFacName als TCHAR Array definiert ist. String Literale werden in _T() bzw. TEXT() eingeschlossen.</p>
<pre><code class="language-cpp">#include &lt;tchar.h&gt;
//...
_tcscpy(logFont.lfFaceName, _T(&quot;Times New Roman&quot;));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1113207</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1113207</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Tue, 08 Aug 2006 16:52:55 GMT</pubDate></item></channel></rss>