<?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 und String ausgeben...]]></title><description><![CDATA[<p>Hi!<br />
Ich will in einer MessageBox einen string ausgeben können... oder einen anderen datentyp...</p>
<p>zB:</p>
<pre><code>string text = &quot;FUBAR&quot;;
MessageBox(NULL, text, TEXT(&quot;Startup Alert!&quot;), MB_OK);
</code></pre>
<p>Aber das geht nicht. wie kann ich sowas machen?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172215/messagebox-und-string-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 17:13:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172215.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Feb 2007 13:14:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MessageBox und String ausgeben... on Fri, 02 Feb 2007 13:14:36 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich will in einer MessageBox einen string ausgeben können... oder einen anderen datentyp...</p>
<p>zB:</p>
<pre><code>string text = &quot;FUBAR&quot;;
MessageBox(NULL, text, TEXT(&quot;Startup Alert!&quot;), MB_OK);
</code></pre>
<p>Aber das geht nicht. wie kann ich sowas machen?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221732</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221732</guid><dc:creator><![CDATA[isas]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox und String ausgeben... on Fri, 02 Feb 2007 13:16:26 GMT]]></title><description><![CDATA[<p>MessageBox erwartet den String im C-Format (char*), also mußt du ihn auch entsprechend übergeben:</p>
<pre><code class="language-cpp">string text = &quot;FUBAR&quot;;//Eventuell brauchst du auch wstring
MessageBox(NULL, text.c_str(), TEXT(&quot;Startup Alert!&quot;), MB_OK);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1221734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221734</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox und String ausgeben... on Fri, 02 Feb 2007 13:28:46 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>MessageBox erwartet den String im C-Format (char*), also mußt du ihn auch entsprechend übergeben:</p>
<pre><code class="language-cpp">string text = &quot;FUBAR&quot;;//Eventuell brauchst du auch wstring
MessageBox(NULL, text.c_str(), TEXT(&quot;Startup Alert!&quot;), MB_OK);
</code></pre>
</blockquote>
<p>Danke für die schnelle antwort. Ja, brauchte einen wstring.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221743</guid><dc:creator><![CDATA[isas]]></dc:creator><pubDate>Fri, 02 Feb 2007 13:28:46 GMT</pubDate></item></channel></rss>