<?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[unterstützt nur Strings?]]></title><description><![CDATA[<p>Ich will einen einfach integer index ausgeben. Das Problem ist mit MessageBox geht das nicht (erwartet 2 Strings) TextOut usw erwarten auch alle Strings.<br />
Wie gebe ich den einen int aus oO?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/220104/unterstützt-nur-strings</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 07:25:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/220104.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Aug 2008 05:19:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 05:19:06 GMT]]></title><description><![CDATA[<p>Ich will einen einfach integer index ausgeben. Das Problem ist mit MessageBox geht das nicht (erwartet 2 Strings) TextOut usw erwarten auch alle Strings.<br />
Wie gebe ich den einen int aus oO?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1562996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1562996</guid><dc:creator><![CDATA[WinApi]]></dc:creator><pubDate>Tue, 12 Aug 2008 05:19:06 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 05:36:32 GMT]]></title><description><![CDATA[<p>- _itot<br />
- _tsprintf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563002</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 12 Aug 2008 05:36:32 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 05:49:56 GMT]]></title><description><![CDATA[<p>könntest du mir bitte ein Codebeispiel geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563011</guid><dc:creator><![CDATA[WinApi]]></dc:creator><pubDate>Tue, 12 Aug 2008 05:49:56 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 05:55:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int i=123;
char s[32];

sprintf_s(s,32,&quot;%i&quot;,i);
MessageBox(0,s,0,0);
</code></pre>
<p>Eine von mehreren Möglichkeiten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563015</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 12 Aug 2008 05:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 06:01:13 GMT]]></title><description><![CDATA[<p>danke, das Problem ist nur das ich kein C kann und kein C++ deshlab frage ich mich was das % bedeutet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563017</guid><dc:creator><![CDATA[WinApi]]></dc:creator><pubDate>Tue, 12 Aug 2008 06:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 06:10:32 GMT]]></title><description><![CDATA[<p>WinApi schrieb:</p>
<blockquote>
<p>danke, das Problem ist nur das ich kein C kann und kein C++ deshlab frage ich mich was das % bedeutet</p>
</blockquote>
<p>Das %i in dem String ist (wie %d auch) ein Platzhalter für eine Integer-Variable. %f würde beispielsweise für einen float-Wert stehen, %s für einen String. Du kannst so Strings wie etwa &quot;Ich lerne seit %i Tagen C++.&quot; formulieren und das %i eben durch einen Zahlenwert ersetzen (im Beispiel der letzte Parameter). Das funktioniert aber nur bei bestimmten Funktionen, die Strings eben auf diese Art interpretieren (CString::format in der MFC beispielsweise auch). Alles weitere siehe MSDN.</p>
<p><a href="http://msdn.microsoft.com/de-de/library/ce3zzk1k.aspx" rel="nofollow">http://msdn.microsoft.com/de-de/library/ce3zzk1k.aspx</a></p>
<p>Btw, wenn du schon selbst sagst, dass du kein C/C++ beherrschst, solltest du nicht gleich mit WinAPI-Programmen beginnen. Fange lieber klein an und schreibe erstmal ein paar Konsolen-Programme, um die Basics zu lernen. Sonst machst du dir selbst das Leben schwer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563020</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 12 Aug 2008 06:10:32 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 06:10:42 GMT]]></title><description><![CDATA[<p>sorry, meinte das ich nur C++ und kein C kann. Danke für die Erklärung das mit dem % ist ja super im Gegensatz zu cout.<br />
Gibt es davon auch ne TCHAR Variante? weil ich kompiliere unter UNICODE und ANSI</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563022</guid><dc:creator><![CDATA[WinApi]]></dc:creator><pubDate>Tue, 12 Aug 2008 06:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 06:17:09 GMT]]></title><description><![CDATA[<p>WinApi schrieb:</p>
<blockquote>
<p>sorry, meinte das ich nur C++ und kein C kann. Danke für die Erklärung das mit dem % ist ja super im Gegensatz zu cout.<br />
Gibt es davon auch ne TCHAR Variante? weil ich kompiliere unter UNICODE und ANSI</p>
</blockquote>
<p>Hmm, vielleicht stprintf_s? Da kenne ich mich nicht so aus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563025</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 12 Aug 2008 06:17:09 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 06:50:43 GMT]]></title><description><![CDATA[<p>kennt die Funktion niht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563043</guid><dc:creator><![CDATA[WinApi]]></dc:creator><pubDate>Tue, 12 Aug 2008 06:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 07:32:27 GMT]]></title><description><![CDATA[<p>Ich vermute mal, die Funktion _tsprintf, die Jochen genannt hat, ist was du suchst. Wie gesagt, ich nutze Unicode nicht und kenne mich da nicht aus. Deine weitere Suche sollte z.B. auf <a href="http://msdn.com" rel="nofollow">msdn.com</a> stattfinden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563069</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 12 Aug 2008 07:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to unterstützt nur Strings? on Tue, 12 Aug 2008 07:35:31 GMT]]></title><description><![CDATA[<p>Wenn du C++ kannst versuche es doch mal mit boost::lexical_cast bzw. mit einer der beschriebenen Int-&gt;String-Wege in der C++-FAQ.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563071</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Tue, 12 Aug 2008 07:35:31 GMT</pubDate></item></channel></rss>