<?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[Byte in String umwandeln]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich wüsste gerne, wie ich ein Byte in String umwandeln kann.<br />
Vielen Dank im Voraus.<br />
Olany</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176196/byte-in-string-umwandeln</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 11:15:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176196.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Mar 2007 21:16:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 21:16:51 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich wüsste gerne, wie ich ein Byte in String umwandeln kann.<br />
Vielen Dank im Voraus.<br />
Olany</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248021</guid><dc:creator><![CDATA[Olany]]></dc:creator><pubDate>Sun, 18 Mar 2007 21:16:51 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 21:18:48 GMT]]></title><description><![CDATA[<p>Auf welcher Basis? Möchtest du im String dann eine Folge von 0 und 1 stehen haben?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248025</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 18 Mar 2007 21:18:48 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 21:38:47 GMT]]></title><description><![CDATA[<p>Hallo und danke erstmal für die schnelle Antwort,<br />
Der String soll auf Dezimal-Basis sein (von 0 bis 255).<br />
Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248043</guid><dc:creator><![CDATA[Olany]]></dc:creator><pubDate>Sun, 18 Mar 2007 21:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 21:41:55 GMT]]></title><description><![CDATA[<p>Ich nehme na als Datentyp für ein einzelnes Byte verwendest du char?</p>
<pre><code class="language-cpp">char c = 'A';
cout &lt;&lt; (int)c; // Ausgabe von 65
</code></pre>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248046</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 18 Mar 2007 21:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 21:56:01 GMT]]></title><description><![CDATA[<p>Es geht um ein Data-Byte, die ich über die serielle Schnittstelle auslese.</p>
<pre><code class="language-cpp">BYTE data;
CString m_text;
.....
// der Wert, der in data gespeichert ist soll in m_text gespeichert werden, damit ihn anzeigen kann

m_text = ???(data)???
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1248048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248048</guid><dc:creator><![CDATA[Olany]]></dc:creator><pubDate>Sun, 18 Mar 2007 21:56:01 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 22:07:44 GMT]]></title><description><![CDATA[<p>Verstehe, du willst das Ergebnis also ein BYTE (dahinter steht ein unsigned char) in einen CString der MFC quetschen. Vorgehensweise:</p>
<pre><code class="language-cpp">int zahl = byte;
char zahl_as_str [4];

sprintf(zahl_as_str, &quot;%d&quot;, zahl);

// Das kannst du jetzt leicht in einen CString quetschen:
cstr = zahl_as_str;
</code></pre>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248057</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 18 Mar 2007 22:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 22:23:30 GMT]]></title><description><![CDATA[<p>Vielen Dank.<br />
Ich habe es jetzt anders gemacht und es funktioniert auch.</p>
<pre><code class="language-cpp">m_text.Format(_T(&quot;%d&quot;), data);
</code></pre>
<p>Viele Grüsse,<br />
Olany</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248067</guid><dc:creator><![CDATA[Olany]]></dc:creator><pubDate>Sun, 18 Mar 2007 22:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Byte in String umwandeln on Sun, 18 Mar 2007 22:48:34 GMT]]></title><description><![CDATA[<p>Noch besser.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248070</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 18 Mar 2007 22:48:34 GMT</pubDate></item></channel></rss>