<?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[Plötzlich muss umgewandelt werden?]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich schrieb immer:</p>
<pre><code class="language-cpp">CreateWindowEx(NULL, szAppClass, &quot;RPGEngine&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE, GetSystemMetrics(SM_CXSCREEN)/2 -250, GetSystemMetrics(SM_CYSCREEN)/2 -187, 500, 375, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Jetzt wollte ich meine Engine überarbeiten aber plötzlich muss ich ein &quot;L&quot; vor &quot;RPGEngine&quot; setzen, also so:</p>
<pre><code class="language-cpp">CreateWindowEx(NULL, szAppClass, L&quot;RPGEngine&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE, GetSystemMetrics(SM_CXSCREEN)/2 -250, GetSystemMetrics(SM_CYSCREEN)/2 -187, 500, 375, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Weil:</p>
<pre><code>error C2664: 'CreateWindowExW' : cannot convert parameter 3 from 'const char [10]' to 'LPCWSTR'
</code></pre>
<p>Warum ist das plötzlich so? Früher ging es ohne dem L und plötzlich ist auch meine Textur nur noch weiß weil ich vor den namen auch ein L hab schreiben müssen (DirectX CreateTextureFromFile oder so)</p>
<p>Was ist da faul?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154162/plötzlich-muss-umgewandelt-werden</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 12:27:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154162.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jul 2006 00:00:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Plötzlich muss umgewandelt werden? on Tue, 25 Jul 2006 00:00:34 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich schrieb immer:</p>
<pre><code class="language-cpp">CreateWindowEx(NULL, szAppClass, &quot;RPGEngine&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE, GetSystemMetrics(SM_CXSCREEN)/2 -250, GetSystemMetrics(SM_CYSCREEN)/2 -187, 500, 375, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Jetzt wollte ich meine Engine überarbeiten aber plötzlich muss ich ein &quot;L&quot; vor &quot;RPGEngine&quot; setzen, also so:</p>
<pre><code class="language-cpp">CreateWindowEx(NULL, szAppClass, L&quot;RPGEngine&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE, GetSystemMetrics(SM_CXSCREEN)/2 -250, GetSystemMetrics(SM_CYSCREEN)/2 -187, 500, 375, NULL, NULL, hInstance, NULL);
</code></pre>
<p>Weil:</p>
<pre><code>error C2664: 'CreateWindowExW' : cannot convert parameter 3 from 'const char [10]' to 'LPCWSTR'
</code></pre>
<p>Warum ist das plötzlich so? Früher ging es ohne dem L und plötzlich ist auch meine Textur nur noch weiß weil ich vor den namen auch ein L hab schreiben müssen (DirectX CreateTextureFromFile oder so)</p>
<p>Was ist da faul?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103530</guid><dc:creator><![CDATA[Komisch]]></dc:creator><pubDate>Tue, 25 Jul 2006 00:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to Plötzlich muss umgewandelt werden? on Tue, 25 Jul 2006 00:24:04 GMT]]></title><description><![CDATA[<p>Früher hast du wohl vs03 oder älter benutzt und heute vs05<br />
früher war ansi standardmäßig eingestellt, seit 05 ist unicode standardmäßig eingestellt</p>
<p>Mach einfach ein _T() um deine Zeichenketten für die WINAPI-Aufrufe dann klappts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103532</guid><dc:creator><![CDATA[Wiss0r]]></dc:creator><pubDate>Tue, 25 Jul 2006 00:24:04 GMT</pubDate></item><item><title><![CDATA[Reply to Plötzlich muss umgewandelt werden? on Tue, 25 Jul 2006 09:10:26 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC (Visual C++)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103634</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 25 Jul 2006 09:10:26 GMT</pubDate></item></channel></rss>