<?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[TString Instanz]]></title><description><![CDATA[<p>hi,<br />
hab folgende Zeilen aus der Borland Hilfe kopiert die ich für mein prog bräuchte, doch leider gibts damit nur Ärger.</p>
<pre><code class="language-cpp">TStrings * erg = new TStrings();
  try
  {
    //Stringliste benutzen
  }
  __finally
  {
    delete erg; // Stringlistenobjekt freigeben
  }
</code></pre>
<p>Wenn so etwas in der Hilfe vorgeschlagen wird warum funktioniert es nicht, oder hab ich einfach nur was vergessen?<br />
Der Compiler gibt folgenden Fehler zurück</p>
<blockquote>
<p>[C++ Fehler] DBasecon.cpp(65): E2352 Instanz der abstrakten Klasse 'TStrings' kann nicht erzeugt werden<br />
[C++ Fehler] DBasecon.cpp(65): E2353 Klasse 'TStrings' ist abstrakt, weil '_fastcall TStrings::Get(int) = 0'</p>
</blockquote>
<p>Wie erstelle ich mir nun eine Instanz der Klasse TStrings ?¿?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80896/tstring-instanz</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 17:28:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80896.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jul 2004 09:48:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 09:48:23 GMT]]></title><description><![CDATA[<p>hi,<br />
hab folgende Zeilen aus der Borland Hilfe kopiert die ich für mein prog bräuchte, doch leider gibts damit nur Ärger.</p>
<pre><code class="language-cpp">TStrings * erg = new TStrings();
  try
  {
    //Stringliste benutzen
  }
  __finally
  {
    delete erg; // Stringlistenobjekt freigeben
  }
</code></pre>
<p>Wenn so etwas in der Hilfe vorgeschlagen wird warum funktioniert es nicht, oder hab ich einfach nur was vergessen?<br />
Der Compiler gibt folgenden Fehler zurück</p>
<blockquote>
<p>[C++ Fehler] DBasecon.cpp(65): E2352 Instanz der abstrakten Klasse 'TStrings' kann nicht erzeugt werden<br />
[C++ Fehler] DBasecon.cpp(65): E2353 Klasse 'TStrings' ist abstrakt, weil '_fastcall TStrings::Get(int) = 0'</p>
</blockquote>
<p>Wie erstelle ich mir nun eine Instanz der Klasse TStrings ?¿?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568319</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Mon, 26 Jul 2004 09:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 09:58:46 GMT]]></title><description><![CDATA[<pre><code>TStrings * erg = new TStringList;
...
delete erg;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/568327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568327</guid><dc:creator><![CDATA[vielleicht_so]]></dc:creator><pubDate>Mon, 26 Jul 2004 09:58:46 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 10:14:34 GMT]]></title><description><![CDATA[<p>da erscheint der selbe Compiler Fehler <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/568336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568336</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Mon, 26 Jul 2004 10:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 10:31:32 GMT]]></title><description><![CDATA[<p>Nimm halt die TStringList komplett statt TStrings...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568349</guid><dc:creator><![CDATA[Plemplem]]></dc:creator><pubDate>Mon, 26 Jul 2004 10:31:32 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 10:34:37 GMT]]></title><description><![CDATA[<p>TStringList *erg = new TStringList();<br />
hab da grad keinen BCB druff, aber vielleicht hab ich nur die klammern vergessen:<br />
TStrings *erg = new TStringList();</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568351</guid><dc:creator><![CDATA[vielleicht_so]]></dc:creator><pubDate>Mon, 26 Jul 2004 10:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 10:37:49 GMT]]></title><description><![CDATA[<p>Verwende direkt TStringList. TStrings ist eine Abstrakte Klasse und daher kann von ihr kein Objekt erzeugt werden.</p>
<pre><code class="language-cpp">TStringList *erg = new TSringLIst;
</code></pre>
<p>Edit: Sie dient übrigrens als Basisklasse für TSringList, wenn ich mich nicht täusche <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/568353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568353</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Mon, 26 Jul 2004 10:37:49 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 11:31:53 GMT]]></title><description><![CDATA[<p>ok nehme jetzt die TStringListen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
aber trotzdehm stört es mich das sowas in der (achtung ironie) Hilfe steht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568382</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Mon, 26 Jul 2004 11:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 12:14:19 GMT]]></title><description><![CDATA[<p>Mal so als Frage: Wo in der Hilfe hast du das Beispiel gefunden? Ich dabe das Beispiel nur für TSringList gefunden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568424</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Mon, 26 Jul 2004 12:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 13:13:09 GMT]]></title><description><![CDATA[<p>das ganze ist hier zu finden:</p>
<p>Borland hilfe-&gt;Index-&gt;[Eingabe:]TStrings-&gt;Gefundene Themen:TStrings-&gt;Anzeigen-&gt;Verwendung von TStrings-&gt;Eine neue Stringliste erstellen-&gt;Da is der KOT</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568497</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Mon, 26 Jul 2004 13:13:09 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 13:20:30 GMT]]></title><description><![CDATA[<p>Also in meiner Hilfe ist der ganze Code auf TStringList bezogen... (BCB6 Ent.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568512</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 26 Jul 2004 13:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 13:22:28 GMT]]></title><description><![CDATA[<p>Ich hab BCB5 Prof. und das siehts auch so aus:</p>
<pre><code class="language-cpp">TStringList *TempList = new TStringList; // Listenobjekt erstellen
   try{
      // Operationen mit Stringliste durchführen
   }
   __finally{
    delete TempList; // Listenobjekt freigeben
   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/568517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568517</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Mon, 26 Jul 2004 13:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to TString Instanz on Mon, 26 Jul 2004 13:41:46 GMT]]></title><description><![CDATA[<p>Ich code heut schon den ganzen tag, hab mich etwas verlesen :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568540</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Mon, 26 Jul 2004 13:41:46 GMT</pubDate></item></channel></rss>