<?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[AnsiString aus TStringList kopieren]]></title><description><![CDATA[<p>Hallo,<br />
ich kopiere aus eine StringList einen String in einen AnsiString und zwar so:</p>
<pre><code class="language-cpp">AnsiString a;
a = list-&gt;Strings[0]; //Datei Path und Filename mit Ext, also komplett
</code></pre>
<p>So es wird auch kopiert, aber die Ext. nicht, also .bmp nicht.</p>
<p>Kann mir jemand nen tip geben wo der Fehler liegen könnte in der Liste ist alles richtig drin, warum???<br />
Help</p>
<p>Gruß Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188059/ansistring-aus-tstringlist-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 21:27:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188059.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jul 2007 17:16:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 17:16:24 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich kopiere aus eine StringList einen String in einen AnsiString und zwar so:</p>
<pre><code class="language-cpp">AnsiString a;
a = list-&gt;Strings[0]; //Datei Path und Filename mit Ext, also komplett
</code></pre>
<p>So es wird auch kopiert, aber die Ext. nicht, also .bmp nicht.</p>
<p>Kann mir jemand nen tip geben wo der Fehler liegen könnte in der Liste ist alles richtig drin, warum???<br />
Help</p>
<p>Gruß Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333236</guid><dc:creator><![CDATA[daniel23]]></dc:creator><pubDate>Thu, 26 Jul 2007 17:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 17:50:59 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das irgendwo eine Extension verloren geht liegt jedenfalls nicht am gezeigtem Code.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333253</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 26 Jul 2007 17:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 18:04:01 GMT]]></title><description><![CDATA[<p>ja ich weiß in a steht nur der Path mit Filename aber ohne Ext..<br />
soll das an BDS liegen?<br />
In einem anderen Prog geht der gleiche Salat doch auch!?</p>
<p>Das ganze ist in ListBox1DrawItem drin.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333258</guid><dc:creator><![CDATA[daniel23]]></dc:creator><pubDate>Thu, 26 Jul 2007 18:04:01 GMT</pubDate></item><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 18:06:23 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nein das liegt an deinem restlichem Quellcode.<br />
Nach dem Kopieren aus der Liste heraus hat a auf jedenfall genau den gleichen Wert wie das Element in der Liste.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333263</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 26 Jul 2007 18:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 18:19:12 GMT]]></title><description><![CDATA[<p>ja, dann lade ich ein bmp und zeichne es in die ListBox mit canvas und Draw und danach fehlt die Ext.! Text gebe ich mit</p>
<pre><code class="language-cpp">DrawText(ListBox1-&gt;Canvas-&gt;Handle,a.c_str(),-1,(RECT*)&amp;Rect,DT_SINGLELINE);
</code></pre>
<p>aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333277</guid><dc:creator><![CDATA[daniel23]]></dc:creator><pubDate>Thu, 26 Jul 2007 18:19:12 GMT</pubDate></item><item><title><![CDATA[Reply to AnsiString aus TStringList kopieren on Thu, 26 Jul 2007 18:34:45 GMT]]></title><description><![CDATA[<p>Ok ich habs</p>
<pre><code class="language-cpp">bmp-&gt;LoadFromFile(path + ExtractFileName(a.SetLength(a.Length()-4))+typ);
//geht nicht obwohl es in einem anderen prog geht
//hab jetzt 
bmp-&gt;LoadFromFile(path + ExtractFileName(ChangeFileExt(a, typ))); //gefunden
</code></pre>
<p>Danke für deine Hilfe<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1333287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1333287</guid><dc:creator><![CDATA[daniel23]]></dc:creator><pubDate>Thu, 26 Jul 2007 18:34:45 GMT</pubDate></item></channel></rss>