<?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[Probleme mit IntToStr() bei unsigned int]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich eine vorzeichenlose Zahl z.B. 3333333333 (4-Byte) in einen AnsiString konvertieren und umgekehrt.</p>
<p>Wenn ich z.B. folgende Umformung vornehme, erhalte ich als Anzeige -961633963. Offensichtlich wird während des Konvertierens aus 'unsigned' 'signed' gemacht.</p>
<pre><code class="language-cpp">unsigned int ui = 3333333333;
Edit1-&gt;Text = IntToStr(ui);
</code></pre>
<p>Anzeige: -961633963</p>
<p>Finde bisher keine geeignete Methode. Wer weiß Rat?</p>
<p>Gruß<br />
Leo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/87192/probleme-mit-inttostr-bei-unsigned-int</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 11:18:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/87192.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Sep 2004 09:58:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Mon, 27 Sep 2004 09:58:14 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich eine vorzeichenlose Zahl z.B. 3333333333 (4-Byte) in einen AnsiString konvertieren und umgekehrt.</p>
<p>Wenn ich z.B. folgende Umformung vornehme, erhalte ich als Anzeige -961633963. Offensichtlich wird während des Konvertierens aus 'unsigned' 'signed' gemacht.</p>
<pre><code class="language-cpp">unsigned int ui = 3333333333;
Edit1-&gt;Text = IntToStr(ui);
</code></pre>
<p>Anzeige: -961633963</p>
<p>Finde bisher keine geeignete Methode. Wer weiß Rat?</p>
<p>Gruß<br />
Leo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/615737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/615737</guid><dc:creator><![CDATA[Leo Freitag]]></dc:creator><pubDate>Mon, 27 Sep 2004 09:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Mon, 27 Sep 2004 11:09:48 GMT]]></title><description><![CDATA[<p>Was ist IntToStr? Mach's lieber so: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39488" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39488</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/615787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/615787</guid><dc:creator><![CDATA[Cocaine]]></dc:creator><pubDate>Mon, 27 Sep 2004 11:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Mon, 27 Sep 2004 13:07:36 GMT]]></title><description><![CDATA[<p>IMHO fehlt in der FAQ noch ein Hinweis auf boost::lexical_cast.</p>
<p>Damit geht's so:</p>
<pre><code class="language-cpp">string text = lexical_cast&lt;string&gt;(ui);
</code></pre>
<p>MfG Jester</p>
]]></description><link>https://www.c-plusplus.net/forum/post/615902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/615902</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Mon, 27 Sep 2004 13:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Tue, 28 Sep 2004 07:38:40 GMT]]></title><description><![CDATA[<p>Cocaine schrieb:</p>
<blockquote>
<p>Was ist IntToStr? Mach's lieber so: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39488" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39488</a></p>
</blockquote>
<p>Hallo,</p>
<p>wenn Du fragst 'Was ist IntToStr', dann habe ich wahrscheinlich in der falschen Gruppe gepostet. Bitte an die Moderatoren: Einmal in die richtige Ecke verschieben, denn ich wäre schon an einer Antwort interessiert, die sich auf 'IntToStr' bezieht. Danke!</p>
<p>Gruß<br />
Leo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/616494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/616494</guid><dc:creator><![CDATA[Leo Freitag]]></dc:creator><pubDate>Tue, 28 Sep 2004 07:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Tue, 28 Sep 2004 07:50:53 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>IntToStr ist eine Borland-typische Funktion. Du wärst also wohl im BCB-Forum besser aufgehoben.<br />
Das bei deiner Umwandlung eine negative Zahl rauskommt, ist hier normal, da IntToStr als Parameter ein int oder ein __int64 erwartet, dein unsigned int also erst in ein int konvertiert wird. Vielleicht hilft hier ein cast zu __int64.</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/616510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/616510</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 28 Sep 2004 07:50:53 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Tue, 28 Sep 2004 07:53:14 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">Borland C++ Builder (VCL/CLX)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/616516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/616516</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 28 Sep 2004 07:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit IntToStr() bei unsigned int on Tue, 28 Sep 2004 12:05:12 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>IntToStr ist eine Borland-typische Funktion. Du wärst also wohl im BCB-Forum besser aufgehoben.<br />
Das bei deiner Umwandlung eine negative Zahl rauskommt, ist hier normal, da IntToStr als Parameter ein int oder ein __int64 erwartet, dein unsigned int also erst in ein int konvertiert wird. Vielleicht hilft hier ein cast zu __int64.</p>
<p>Ciao</p>
</blockquote>
<p>Hallo,</p>
<p>Ja genau das war's.</p>
<pre><code class="language-cpp">unsigned int uiWert = 3333333333;
__int64 i64 = (__int64) uiWert;
MessageDlg(&quot;Wert: &quot; + IntToStr(i64), mtInformation,  TMsgDlgButtons() &lt;&lt; mbOK, 0);
</code></pre>
<p>Besten Dank.</p>
<p>Gruß<br />
Leo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/616723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/616723</guid><dc:creator><![CDATA[Leo Freitag]]></dc:creator><pubDate>Tue, 28 Sep 2004 12:05:12 GMT</pubDate></item></channel></rss>