<?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[CString mit hexadezimalem Inhalt]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe einen CString mit hexadezimalem Inhalt. Wie wandele ich diesen Inhalt in einem Integer Wert um?</p>
<p>Also ich hab mal was probiert:</p>
<p>CString sHex;<br />
sHex = &quot;0xff&quot;;<br />
iRetVal = static_cast&lt;int&gt;(atoi(sHex));</p>
<p>Aber ich bekomme immer die Fehlermeldung:<br />
'atoi': Konvertierung des Parameters 1 von 'CString' in 'const char *' nicht möglich</p>
<p>Hab schon versucht zu typecasten.</p>
<p>--Edit<br />
Habe jetzt einfach mal einen Const Char* genommen und versucht wie oben in Hexadezimal umzuwandeln. Also so : iRetVal = atoi(&quot;0xff&quot;);</p>
<p>Klappt nicht, kommt immer 0 heraus. Was gibt es noch für Möglichkeiten CString Hexadezimal in Integer umzuwandeln?</p>
<p>Könnt ihr mir helfen?</p>
<p>Danke für Eure Hilfe im voraus.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159014/cstring-mit-hexadezimalem-inhalt</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 21:47:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159014.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2006 11:27:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CString mit hexadezimalem Inhalt on Mon, 11 Sep 2006 11:36:43 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe einen CString mit hexadezimalem Inhalt. Wie wandele ich diesen Inhalt in einem Integer Wert um?</p>
<p>Also ich hab mal was probiert:</p>
<p>CString sHex;<br />
sHex = &quot;0xff&quot;;<br />
iRetVal = static_cast&lt;int&gt;(atoi(sHex));</p>
<p>Aber ich bekomme immer die Fehlermeldung:<br />
'atoi': Konvertierung des Parameters 1 von 'CString' in 'const char *' nicht möglich</p>
<p>Hab schon versucht zu typecasten.</p>
<p>--Edit<br />
Habe jetzt einfach mal einen Const Char* genommen und versucht wie oben in Hexadezimal umzuwandeln. Also so : iRetVal = atoi(&quot;0xff&quot;);</p>
<p>Klappt nicht, kommt immer 0 heraus. Was gibt es noch für Möglichkeiten CString Hexadezimal in Integer umzuwandeln?</p>
<p>Könnt ihr mir helfen?</p>
<p>Danke für Eure Hilfe im voraus.</p>
<p>Grüsse<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135067</guid><dc:creator><![CDATA[xthing]]></dc:creator><pubDate>Mon, 11 Sep 2006 11:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to CString mit hexadezimalem Inhalt on Mon, 11 Sep 2006 11:36:08 GMT]]></title><description><![CDATA[<p>Ist UNICODE definiert, dann liefert CString einen cont wchar_t*!<br />
Verwende mal die allgemeine _ttio Funktion!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135076</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 11 Sep 2006 11:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to CString mit hexadezimalem Inhalt on Mon, 11 Sep 2006 11:48:31 GMT]]></title><description><![CDATA[<p>Schau mal in die FAQ: Kategorie Casten <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135089</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Mon, 11 Sep 2006 11:48:31 GMT</pubDate></item></channel></rss>