<?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 ändern]]></title><description><![CDATA[<p>hi,</p>
<p>ich möchte folgendes anstellen:</p>
<p>ich lade eine datei zb. O0012.ppg (das erste Zeichen ist ein großes Ohh der rest nullen). diesen namen packe ich in einen CString.<br />
und nun möchte ich je nachdem ob die letzte zahl gerade oder ungerade ist einen neuen CString kreieren der eine eins hinzuaddiert oder abzieht.<br />
also aus zb. O0012.ppg soll O0013.ppg werden<br />
und aus zb. O0011.ppg soll O0010.ppg werden...</p>
<p>mien problem ist: ich habe zwar meinen CString mit dem Dateinamen (O0012.ppg) aber ich weiß nicht wie ich jetzt die abfrage gestallten soll, damit der neue CString entsteht.</p>
<p>ich hoffe ihr versteht was ich meine...</p>
<p>THX für die hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/63454/cstring-ändern</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 09:34:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/63454.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Feb 2004 06:40:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 06:40:38 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich möchte folgendes anstellen:</p>
<p>ich lade eine datei zb. O0012.ppg (das erste Zeichen ist ein großes Ohh der rest nullen). diesen namen packe ich in einen CString.<br />
und nun möchte ich je nachdem ob die letzte zahl gerade oder ungerade ist einen neuen CString kreieren der eine eins hinzuaddiert oder abzieht.<br />
also aus zb. O0012.ppg soll O0013.ppg werden<br />
und aus zb. O0011.ppg soll O0010.ppg werden...</p>
<p>mien problem ist: ich habe zwar meinen CString mit dem Dateinamen (O0012.ppg) aber ich weiß nicht wie ich jetzt die abfrage gestallten soll, damit der neue CString entsteht.</p>
<p>ich hoffe ihr versteht was ich meine...</p>
<p>THX für die hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449366</guid><dc:creator><![CDATA[radelt]]></dc:creator><pubDate>Mon, 02 Feb 2004 06:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 06:50:11 GMT]]></title><description><![CDATA[<p>einfach die 4 zahlen per Mid in nen extra String packen, per atoi in ne Zahl umwandeln, deine Bedingungen anwenden und dann per Format wieder in nen String schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449367</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 02 Feb 2004 06:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:01:07 GMT]]></title><description><![CDATA[<p>okay,</p>
<p>aber wie funktioniert Mid?</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449372</guid><dc:creator><![CDATA[radelt]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:01:07 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:03:55 GMT]]></title><description><![CDATA[<p>Für solche Fragen gibts die MSDN!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449374</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:05:50 GMT]]></title><description><![CDATA[<p>ja und die habe ich nur in englisch und da verstehe ich nur die hälfte...<br />
wäre dir sehr dankbar, wenn du es mir kurz erklären könntest!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449375</guid><dc:creator><![CDATA[radelt]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:05:50 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:12:57 GMT]]></title><description><![CDATA[<p>Also die Parameter wirst du wohl gerade noch übersetzt bekommen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449378</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:24:31 GMT]]></title><description><![CDATA[<p>wie kann man eigentlich coden, wenn man nicht mal die msdn lesen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/449381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449381</guid><dc:creator><![CDATA[----]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 07:29:44 GMT]]></title><description><![CDATA[<p>---- schrieb:</p>
<blockquote>
<p>wie kann man eigentlich coden, wenn man nicht mal die msdn lesen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>*g* So deutlich wollte ich's dann doch nicht sagen <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/449382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449382</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 02 Feb 2004 07:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 08:06:44 GMT]]></title><description><![CDATA[<p>wenn ich in der msdn suche finde ich nur ne funktion für visual basic....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449397</guid><dc:creator><![CDATA[radelt]]></dc:creator><pubDate>Mon, 02 Feb 2004 08:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 08:39:39 GMT]]></title><description><![CDATA[<p>This method extracts a substring of length nCount characters from this CString object, starting at position nFirst (zero-based). The method returns a copy of the extracted substring. Mid is similar to the Basic MID$ function, except that indexes are zero-based.</p>
<p>CString Mid(<br />
int nFirst,<br />
int nCount )<br />
const;</p>
<p>CString Mid(<br />
int nFirst )<br />
const;<br />
Parameters<br />
nFirst<br />
Specifies the zero-based index of the first character in this CString object that is to be included in the extracted substring.<br />
nCount<br />
Specifies the number of characters to extract from this CString object. If this parameter is not supplied, the remainder of the string is extracted.<br />
Return Value</p>
<p>A CString object that contains a copy of the specified range of characters. Note that the returned CString object may be empty.</p>
<p>Example</p>
<p>The following example demonstrates the use of CString::Mid.</p>
<p>// example for CString::Mid<br />
CString s( _T(&quot;abcdef&quot;) );<br />
ASSERT( s.Mid( 2, 3 ) == _T(&quot;cde&quot;) );<br />
Requirements</p>
<p>Windows CE versions: 1.0 and later<br />
Header file: Declared in Afx.h</p>
<p>First = Wo willst du beginnen<br />
Count = Wieviele Zeichen sollen es sein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449407</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449407</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Mon, 02 Feb 2004 08:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 08:39:46 GMT]]></title><description><![CDATA[<p>Schreib doch einfach ne Klasse dafür.<br />
Oder benutz die Suche, FAQ, Google oder MSDN.</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449408</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Mon, 02 Feb 2004 08:39:46 GMT</pubDate></item><item><title><![CDATA[Reply to CString ändern on Mon, 02 Feb 2004 08:47:01 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/156">@UNIX-TOM</a></p>
<p>vielen Dank ist genau das was ich suchte !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/449412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/449412</guid><dc:creator><![CDATA[radelt]]></dc:creator><pubDate>Mon, 02 Feb 2004 08:47:01 GMT</pubDate></item></channel></rss>