<?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 Substring]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe folgendes Problem und zwar funktioniert substring nicht...</p>
<pre><code>info2 = (CString)ucReadBlock;
info3 = info2.substring(0, 3);
info = info + info3;
</code></pre>
<p>Natürlich steht oben im Programm #include &lt;string.h&gt;<br />
Warum funktioniert das nicht?<br />
Danke für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123117/probleme-mit-substring</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 11:23:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123117.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Oct 2005 08:35:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:35:53 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe folgendes Problem und zwar funktioniert substring nicht...</p>
<pre><code>info2 = (CString)ucReadBlock;
info3 = info2.substring(0, 3);
info = info + info3;
</code></pre>
<p>Natürlich steht oben im Programm #include &lt;string.h&gt;<br />
Warum funktioniert das nicht?<br />
Danke für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891113</guid><dc:creator><![CDATA[Volvic99]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:35:53 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:42:46 GMT]]></title><description><![CDATA[<p>Oh man, ich weiß gar nicht, worüber ich bei deinen Post zuerst meckern soll. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>- &quot;Funktioniert nicht&quot; ist schon ne tolle Fehlerbeschreibung.<br />
Ich bin versucht, es bei einem pampigen 'Kein Wunder' zu belassen.</p>
<p>- CString oder string, das ist hier die Frage.</p>
<p>- &lt;string.h&gt; oder &lt;string&gt;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891118</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:45:29 GMT]]></title><description><![CDATA[<p>meine glaskugel ist im moment kaputt. <strong>was</strong> funktioniert den nicht?<br />
compiler error? unerwartetes ergebniss?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891122</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:45:29 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:45:33 GMT]]></title><description><![CDATA[<p>der CString funktioniert wunderbar^^ Du würfelst hier wohl eher was durcheinander..<br />
Von welchem Typ ist denn ucReadBlock?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891123</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891123</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:48:59 GMT]]></title><description><![CDATA[<p>Ok dann etwas ausführlicher <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Das ist die Fehlermeldung.<br />
error C2039: 'substring': Ist kein Element von 'ATL::CStringT&lt;BaseType,StringTraits&gt;'<br />
with<br />
[<br />
BaseType=char,<br />
StringTraits=StrTraitMFC&lt;char&gt;<br />
]</p>
<p>ucReadBlock &lt;-- UCHAR kann (Zahlen und Buchstaben)<br />
Ich will nur die ersten 4 Zeichen haben.<br />
Und die nachher abspeichern.</p>
<pre><code>for(i=0; i&lt;ucDataSets; i++ )
		{
			m_Reader.GetTableData(nItem, FE_ISC_OSI_TABLE2, LPSM_ISC_DAT4_RxDB, i+m_3uDBAdr4, ucReadBlock, (int) ucBlockSize);	
			m_Edit.SetHexData(i+m_uiDBAdr, 1, (char*)ucReadBlock);
			info2 = (CString)ucReadBlock;
			info3 = info2.substring(0, 3);
			info = info + info3;
</code></pre>
<p>ps: ich gelobe Besserung <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>
]]></description><link>https://www.c-plusplus.net/forum/post/891124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891124</guid><dc:creator><![CDATA[Volvic99]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:48:59 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:53:46 GMT]]></title><description><![CDATA[<p>Das funtkioniert alles Wunderbar..<br />
der Fehler erscheint nur wenn er beim Compilieren bei substring angelangt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891128</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891128</guid><dc:creator><![CDATA[Volvic99]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:53:46 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 08:56:31 GMT]]></title><description><![CDATA[<p>steht doch eindeutig da.</p>
<pre><code>error C2039: 'substring': Ist kein Element von 'ATL::CStringT&lt;BaseType,StringTraits&gt;'
</code></pre>
<p>siehe dazu die entsprechende <strong>mfc</strong> klasse <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring_class_members.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring_class_members.asp</a></p>
<p>ps: falsches forum hat nichts mit standard c++ zu tun</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891131</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 13 Oct 2005 08:56:31 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 09:04:29 GMT]]></title><description><![CDATA[<p>Du brauchst Left</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891143</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Thu, 13 Oct 2005 09:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Substring on Thu, 13 Oct 2005 09:05:33 GMT]]></title><description><![CDATA[<p>Jo habe ich schon merci . . .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891144</guid><dc:creator><![CDATA[Volvic99]]></dc:creator><pubDate>Thu, 13 Oct 2005 09:05:33 GMT</pubDate></item></channel></rss>