<?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 mit Variablen?]]></title><description><![CDATA[<p>Hallo, ich hab mal eine Frage.</p>
<p>Wie kann ich eine MessageBox machen, in der ich Variablen benutze?</p>
<p>Normalerweise benutzt man die MessageBox ja so:</p>
<pre><code class="language-cpp">MessageBox(&quot;AnzuzeigenderText&quot;, &quot;Fenstertitel&quot;, Icon);
</code></pre>
<p>Nun möchte ich das aber so in dieser Art haben:</p>
<p>MessageBox(&quot;AnzuzeigenderText&quot; + Variable + &quot;AnzuzeigenderText&quot;, &quot;Fenstertitel&quot;, Icon);</p>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/64506/messagebox-mit-variablen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 23:02:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/64506.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Feb 2004 13:24:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Messagebox mit Variablen? on Wed, 11 Feb 2004 13:24:58 GMT]]></title><description><![CDATA[<p>Hallo, ich hab mal eine Frage.</p>
<p>Wie kann ich eine MessageBox machen, in der ich Variablen benutze?</p>
<p>Normalerweise benutzt man die MessageBox ja so:</p>
<pre><code class="language-cpp">MessageBox(&quot;AnzuzeigenderText&quot;, &quot;Fenstertitel&quot;, Icon);
</code></pre>
<p>Nun möchte ich das aber so in dieser Art haben:</p>
<p>MessageBox(&quot;AnzuzeigenderText&quot; + Variable + &quot;AnzuzeigenderText&quot;, &quot;Fenstertitel&quot;, Icon);</p>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/456920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/456920</guid><dc:creator><![CDATA[ExtremeSnail]]></dc:creator><pubDate>Wed, 11 Feb 2004 13:24:58 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox mit Variablen? on Wed, 11 Feb 2004 13:29:25 GMT]]></title><description><![CDATA[<p>Guck dir mal an, wie man zahlen in Strings umwandelt,<br />
und wie man das dann zusammen Bastelt. Steht alles in der FAQ.</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/456927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/456927</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 11 Feb 2004 13:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox mit Variablen? on Wed, 11 Feb 2004 13:42:59 GMT]]></title><description><![CDATA[<p>Aloha,</p>
<p>man kann es auch konkret sagen, oder ewig in der FAQ suchen.</p>
<pre><code>CString ausgabe;
ausgabe.format(&quot;Text1 %d Text2&quot;,zahl);

AfxMessagebox(ausgabe);
</code></pre>
<p>MSDN Stichwort CString --&gt; format() wegen dem Variablentyp (%d).</p>
<p>Grüße</p>
<p>BOA</p>
]]></description><link>https://www.c-plusplus.net/forum/post/456946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/456946</guid><dc:creator><![CDATA[BOA]]></dc:creator><pubDate>Wed, 11 Feb 2004 13:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox mit Variablen? on Wed, 11 Feb 2004 14:12:49 GMT]]></title><description><![CDATA[<p>Wenn du es einfach machen möchtest und deine Variable ein CString ist</p>
<p>dann entweder:</p>
<pre><code class="language-cpp">CString mname;
mname = &quot;Anton&quot;;

MessageBox(&quot;Mein Name ist &quot;+mname+&quot;!&quot;,&quot;Name&quot;,MB_OK);
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">CString mname;
CString mausgabe;
mname = &quot;Anton&quot;;
mausgabe = &quot;Mein Name ist &quot;+mname+&quot;!&quot;;

MessageBox(mausgabe,&quot;Name&quot;,MB_OK);
</code></pre>
<p>Ist es eine Integer dann ist der Weg von BOA der kürzeste.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/456987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/456987</guid><dc:creator><![CDATA[Brosi]]></dc:creator><pubDate>Wed, 11 Feb 2004 14:12:49 GMT</pubDate></item></channel></rss>