<?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[INT umwandeln in Char??§]]></title><description><![CDATA[<p>Hi leute</p>
<p>ich habe Zahlergebnise in INT gespeichert.<br />
Nun möchte ich diese in einem Editfeld ausgeben.<br />
Leider geht das nicht, da diese int sind.</p>
<p>Wie konventiere ich dise INT-Zahlen in den Char um ihn nachher als CString zu verwenden??</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/74329/int-umwandeln-in-char</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 10:00:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/74329.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 May 2004 12:41:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 12:41:38 GMT]]></title><description><![CDATA[<p>Hi leute</p>
<p>ich habe Zahlergebnise in INT gespeichert.<br />
Nun möchte ich diese in einem Editfeld ausgeben.<br />
Leider geht das nicht, da diese int sind.</p>
<p>Wie konventiere ich dise INT-Zahlen in den Char um ihn nachher als CString zu verwenden??</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523408</guid><dc:creator><![CDATA[Programmer (loggetout)]]></dc:creator><pubDate>Wed, 19 May 2004 12:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 12:50:44 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>MSDN -&gt; itoa()</p>
<p>CString -&gt; Format</p>
<p>Bsp:</p>
<pre><code class="language-cpp">int iZiehderKatzeamSchwanz = 1000;
CString strAmSchwanzgezogen;

strAmSchwanzgezogen.Format(&quot;%d&quot;, iZiehderKatzeamSchwanz);

m_ctrEditHattemalneKatze.SetWindowText(strAmSchwanzgezogen);
</code></pre>
<p>Steht glaube ich auch in der FAQ und wenn du &quot;Int nach CString&quot; oder &quot;Int nach Char&quot; in die Suche eingibst findest du auch sicher was... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>*winke*<br />
Hellsgore</p>
<p>EDIT:<br />
Achso sicherlich geht das Ausgeben auch ohne Umwandlung. Du erstellste eine Membervar von deinem Edit vom Typ int (Value).</p>
<pre><code class="language-cpp">m_iEdit = 1000;
UpdateData(FALSE);
</code></pre>
<p>UpdateData() holst du dir den Inhalt des Controls...<br />
UpdateData(FALSE) schreibst du in ein Control...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523415</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Wed, 19 May 2004 12:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 14:05:28 GMT]]></title><description><![CDATA[<p>Jo, thx!<br />
Format... das wars<br />
ich Trottel, grins!!</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523471</guid><dc:creator><![CDATA[Pro]]></dc:creator><pubDate>Wed, 19 May 2004 14:05:28 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 14:24:44 GMT]]></title><description><![CDATA[<p>Klappt doch nicht!!</p>
<p>In einer Textanzeige m_strText gehts, aber im Editfeld wird mir anstatt die zahl einfach nur immer &quot;-858993460,&quot; ausgegeben!</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523485</guid><dc:creator><![CDATA[Pro]]></dc:creator><pubDate>Wed, 19 May 2004 14:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 14:28:16 GMT]]></title><description><![CDATA[<p>Dann hast du wohl keinen gültigen Wert in deiner Variable stehen. Debugge mal durch und gucke was in deiner Int Variable drin steht.</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523488</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Wed, 19 May 2004 14:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Wed, 19 May 2004 14:35:28 GMT]]></title><description><![CDATA[<p>in der int variable steht ja die Zahl wie ich es ja will.<br />
Das geht auch ja über m_strText.SetWindowText(string);</p>
<p>also vorher hab ich ja:</p>
<p>int test;<br />
test = 11;<br />
CString string;<br />
string.Format(&quot;%d&quot;, test);</p>
<p>gemacht. Die Zahl 11 wird ausgegeben.Klappt. Aber warum in der Edit net=?<br />
mf<br />
gPro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/523496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/523496</guid><dc:creator><![CDATA[Progr]]></dc:creator><pubDate>Wed, 19 May 2004 14:35:28 GMT</pubDate></item><item><title><![CDATA[Reply to INT umwandeln in Char??§ on Fri, 21 May 2004 08:48:23 GMT]]></title><description><![CDATA[<p>???</p>
<p>Schreib mal den kompletten Code hin. Du schreibst wohl irgendwo Müll in eine Variable......</p>
<pre><code class="language-cpp">void CDeinDlg::OnBnClickedButton1()
{
	int iZahl = 11;
	CString strZahl;
	strZahl.Format(&quot;%d&quot;, iZahl);
	m_ctrEdit.SetWindowText(strZahl);
}
</code></pre>
<p>m_ctrEdit ist vom Typ CEdit und die Control Variable von einem Edit Control.</p>
<p>Sollte eigentlich kein Problem sein.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524424</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Fri, 21 May 2004 08:48:23 GMT</pubDate></item></channel></rss>