<?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[MessageBox]]></title><description><![CDATA[<p>Hallo Ich hab ein kleines Problem mit MessageBox<br />
Wenn ich versuchen das Programm zu kompilieren gibt der immer als Fehler das hier an</p>
<p>1&gt;c:\users\justus\documents\visual studio 2008\projects\winapi\winapi\winapi.cpp(8) : error C2664: 'MessageBoxW': Konvertierung des Parameters 2 von 'const char [12]' in 'LPCWSTR' nicht möglich</p>
<p>Mein Code</p>
<p># include &lt; stdafx.h &gt;<br />
# include &lt; windows.h &gt;</p>
<p>int WINAPI WinMain ( HINSTANCE hInstance , HINSTANCE hPrevInstance , LPSTR IpCmdLine , int nShowCmd )<br />
{<br />
MessageBox ( NULL , &quot;Hello World&quot; , &quot;Das Fenster&quot; , MB_OKCANCEL ) ;<br />
return 0 ;<br />
}</p>
<p>knan jemmand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/221025/messagebox</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:46:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/221025.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Aug 2008 19:49:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MessageBox on Sun, 24 Aug 2008 19:49:17 GMT]]></title><description><![CDATA[<p>Hallo Ich hab ein kleines Problem mit MessageBox<br />
Wenn ich versuchen das Programm zu kompilieren gibt der immer als Fehler das hier an</p>
<p>1&gt;c:\users\justus\documents\visual studio 2008\projects\winapi\winapi\winapi.cpp(8) : error C2664: 'MessageBoxW': Konvertierung des Parameters 2 von 'const char [12]' in 'LPCWSTR' nicht möglich</p>
<p>Mein Code</p>
<p># include &lt; stdafx.h &gt;<br />
# include &lt; windows.h &gt;</p>
<p>int WINAPI WinMain ( HINSTANCE hInstance , HINSTANCE hPrevInstance , LPSTR IpCmdLine , int nShowCmd )<br />
{<br />
MessageBox ( NULL , &quot;Hello World&quot; , &quot;Das Fenster&quot; , MB_OKCANCEL ) ;<br />
return 0 ;<br />
}</p>
<p>knan jemmand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570675</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570675</guid><dc:creator><![CDATA[Di77o]]></dc:creator><pubDate>Sun, 24 Aug 2008 19:49:17 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Sun, 24 Aug 2008 20:02:08 GMT]]></title><description><![CDATA[<p>Du verwendest UNICODE, übergibst aber Multi Byte Strings.<br />
Du musst das TEXT Makro davorsetzten:</p>
<pre><code class="language-cpp">MessageBox ( NULL , TEXT(&quot;Hello World&quot;) , TEXT(&quot;Das Fenster&quot;) , MB_OKCANCEL ) ;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1570678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570678</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 24 Aug 2008 20:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Sun, 24 Aug 2008 20:28:20 GMT]]></title><description><![CDATA[<p>Ich vermute mal das du ein einsteiger in der WinAPI bist, deswegen würde ich dir raten, deinen zeichensatz von Unicode auf &quot;nicht festgelegt&quot; um zu stellen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570690</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Sun, 24 Aug 2008 20:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Sun, 24 Aug 2008 22:52:45 GMT]]></title><description><![CDATA[<p>Code-Walker schrieb:</p>
<blockquote>
<p>Ich vermute mal das du ein einsteiger in der WinAPI bist, deswegen würde ich dir raten, deinen zeichensatz von Unicode auf &quot;nicht festgelegt&quot; um zu stellen!</p>
</blockquote>
<p>blödsinn auch einsteiger müssen auf ihren style achtennn</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570736</guid><dc:creator><![CDATA[evilking]]></dc:creator><pubDate>Sun, 24 Aug 2008 22:52:45 GMT</pubDate></item></channel></rss>