<?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[catch(...) will nicht]]></title><description><![CDATA[<p>hiho,<br />
mein problem ist ich hab einma TListView und nen Button.<br />
wenn man auf den button klickt soll aus der ausgewählste text in TListView in eine datei geschrieben werden. das geht ja alles, nur wenn man nix auswählt dann kommt ein EAccesVioltion error, is ja auch kla.<br />
Und den fehler will ich per catch rausnehemen, klappt aba net<br />
hia der code:</p>
<pre><code class="language-cpp">try
{
AnsiString realm=&quot;set realmlist &quot; + ListView1-&gt;Selected-&gt;Caption;
FILE *file;
file=fopen(&quot;realmlist.wtf&quot;, &quot;w&quot;);
fputs(realm.c_str(),file);
}
catch(...)
{
Application-&gt;MessageBoxA(&quot;Please select a server!&quot;, &quot;Error&quot;, 64);
}
</code></pre>
<p>danke im voruas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/129840/catch-will-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 17:25:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129840.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Dec 2005 04:02:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to catch(...) will nicht on Sat, 17 Dec 2005 04:02:02 GMT]]></title><description><![CDATA[<p>hiho,<br />
mein problem ist ich hab einma TListView und nen Button.<br />
wenn man auf den button klickt soll aus der ausgewählste text in TListView in eine datei geschrieben werden. das geht ja alles, nur wenn man nix auswählt dann kommt ein EAccesVioltion error, is ja auch kla.<br />
Und den fehler will ich per catch rausnehemen, klappt aba net<br />
hia der code:</p>
<pre><code class="language-cpp">try
{
AnsiString realm=&quot;set realmlist &quot; + ListView1-&gt;Selected-&gt;Caption;
FILE *file;
file=fopen(&quot;realmlist.wtf&quot;, &quot;w&quot;);
fputs(realm.c_str(),file);
}
catch(...)
{
Application-&gt;MessageBoxA(&quot;Please select a server!&quot;, &quot;Error&quot;, 64);
}
</code></pre>
<p>danke im voruas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/944041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/944041</guid><dc:creator><![CDATA[majin]]></dc:creator><pubDate>Sat, 17 Dec 2005 04:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to catch(...) will nicht on Sat, 17 Dec 2005 06:38:28 GMT]]></title><description><![CDATA[<p>In der IDE wird immer (außer du konfigurierst es um) die Exception angezeigt. Lass dein Programm ohne IDE laufen und du wirst sehen, es geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/944045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/944045</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sat, 17 Dec 2005 06:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to catch(...) will nicht on Sat, 17 Dec 2005 11:46:21 GMT]]></title><description><![CDATA[<p>und wie kann ich das ohne IDE laufen lassen? über projekt-&gt;obzionen hab ich nix gefunden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/944191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/944191</guid><dc:creator><![CDATA[majin]]></dc:creator><pubDate>Sat, 17 Dec 2005 11:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to catch(...) will nicht on Sat, 17 Dec 2005 11:50:08 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>sagt dir zB Explorer etwas<br />
(oder wie startest du sonst Programme)</p>
<p>Mfg<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/944196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/944196</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Sat, 17 Dec 2005 11:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to catch(...) will nicht on Sat, 17 Dec 2005 12:04:11 GMT]]></title><description><![CDATA[<p>jo fett, habt recht <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="😃"
    /></p>
<p>danke an euch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/944209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/944209</guid><dc:creator><![CDATA[majin]]></dc:creator><pubDate>Sat, 17 Dec 2005 12:04:11 GMT</pubDate></item></channel></rss>