<?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[Decimal in Hexadecimal und dann Ausgeben in Messagebox]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich hab da n kleines Problem. Ich möchte eine Decimalzahl in eine Hexadecimalzahl umwandeln und diese dann in einer MessageBox(AfxMessageBox) ausgeben. Ich weiß nur nicht, wie ich umwandeln kann.<br />
Wäre schön, wenn mir jemand auf die sprünge helfen könnte.</p>
<p>MfG<br />
Teddy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5692/decimal-in-hexadecimal-und-dann-ausgeben-in-messagebox</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:12:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5692.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 May 2003 14:22:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Decimal in Hexadecimal und dann Ausgeben in Messagebox on Tue, 06 May 2003 14:22:00 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich hab da n kleines Problem. Ich möchte eine Decimalzahl in eine Hexadecimalzahl umwandeln und diese dann in einer MessageBox(AfxMessageBox) ausgeben. Ich weiß nur nicht, wie ich umwandeln kann.<br />
Wäre schön, wenn mir jemand auf die sprünge helfen könnte.</p>
<p>MfG<br />
Teddy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27683</guid><dc:creator><![CDATA[Teddy]]></dc:creator><pubDate>Tue, 06 May 2003 14:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to Decimal in Hexadecimal und dann Ausgeben in Messagebox on Tue, 06 May 2003 14:47:00 GMT]]></title><description><![CDATA[<p>Was ist der Datentyp für Hex-Zahlen? Willst Du die Zahl nur im Hex-Format anzeigen?</p>
<p>Schau mal nach sprintf oder CString::Format()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27684</guid><dc:creator><![CDATA[Frank ll]]></dc:creator><pubDate>Tue, 06 May 2003 14:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Decimal in Hexadecimal und dann Ausgeben in Messagebox on Wed, 07 May 2003 07:43:00 GMT]]></title><description><![CDATA[<p>ich benötige die Hex-Zahl, um damit den Dateinamen zu bestimmen, welcher dann eindeutig in meiner Datenbank hinterlegt ist. Vom Programm bekomm ich aber nur die Decimaldarstellung geliefert.<br />
Das ganze soll dann ungefähr so aussehn:<br />
**Decimal = 5043<br />
Dateiname = 000013b3<br />
**<br />
Aber diesen Schritt der Umwandlung bekomm ich einfach nicht hin. Bei CString::Format hab ich auch nichts entsprechendes finden können <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/27685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27685</guid><dc:creator><![CDATA[Teddy]]></dc:creator><pubDate>Wed, 07 May 2003 07:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to Decimal in Hexadecimal und dann Ausgeben in Messagebox on Wed, 07 May 2003 08:10:00 GMT]]></title><description><![CDATA[<p>Ok, ich habs gefunden...</p>
<pre><code class="language-cpp">CString hex;
    hex.Format(&quot;%.8x&quot;,5043);
    AfxMessageBox(&quot;&quot;+hex);
</code></pre>
<p>Danke nochmal für die Hilfe</p>
<p>Teddy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27686</guid><dc:creator><![CDATA[Teddy]]></dc:creator><pubDate>Wed, 07 May 2003 08:10:00 GMT</pubDate></item></channel></rss>