<?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[Eurekalog - Wer kennt sich aus?]]></title><description><![CDATA[<p>ich möchte eine exception abfangen und eine beliebige nachricht mit der original exception ausgeben. ich dachte das so:</p>
<p>void __fastcall TMain::EurekaLogExceptionNotify(<br />
TEurekaExceptionRecord &amp;EurekaExceptionRecord, bool &amp;Handled)<br />
{<br />
Exception *Error = Exception(EurekaExceptionRecord.ExceptionObject);<br />
if(Error != NULL)<br />
{<br />
MessageBox(NULL,Error-&gt;Message.c_str(),&quot;&quot;,48);<br />
}<br />
}</p>
<p>die beispiele aus der eurekalog hilfe sind ald in delphi..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109170/eurekalog-wer-kennt-sich-aus</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 10:31:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109170.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 May 2005 11:57:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 11:57:22 GMT]]></title><description><![CDATA[<p>ich möchte eine exception abfangen und eine beliebige nachricht mit der original exception ausgeben. ich dachte das so:</p>
<p>void __fastcall TMain::EurekaLogExceptionNotify(<br />
TEurekaExceptionRecord &amp;EurekaExceptionRecord, bool &amp;Handled)<br />
{<br />
Exception *Error = Exception(EurekaExceptionRecord.ExceptionObject);<br />
if(Error != NULL)<br />
{<br />
MessageBox(NULL,Error-&gt;Message.c_str(),&quot;&quot;,48);<br />
}<br />
}</p>
<p>die beispiele aus der eurekalog hilfe sind ald in delphi..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783400</guid><dc:creator><![CDATA[Heureka]]></dc:creator><pubDate>Sat, 07 May 2005 11:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 22:51:45 GMT]]></title><description><![CDATA[<p>oder eine andere frage...</p>
<p>wie kann ich rausfinden um welchen typ exception es sich handelt? nehmen wir als beispiel mal ESocketError. wie kann ich nun rausfinden ob es diese exception war? sowas wie:</p>
<pre><code class="language-cpp">Exception *Error = Exception(ESocketError);
    if(Error != NULL)
    {
    	//ja das war sie....
    }
</code></pre>
<p>geht sowas? wenn ja wie richtig? jedoch ohne try/catch block...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783736</guid><dc:creator><![CDATA[Heureka]]></dc:creator><pubDate>Sat, 07 May 2005 22:51:45 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 23:16:42 GMT]]></title><description><![CDATA[<p>ah habs...</p>
<pre><code class="language-cpp">Exception *Error = dynamic_cast&lt;Exception*&gt;(EurekaExceptionRecord.ExceptionObject);
	if(Error &amp;&amp; Error-&gt;ClassNameIs(&quot;ESocketError&quot;))
    {
		//ja das war sie...
    }
</code></pre>
<p>oder gibts da was auszusetze? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/783750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783750</guid><dc:creator><![CDATA[Heureka]]></dc:creator><pubDate>Sat, 07 May 2005 23:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 23:29:25 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>wenn ja wie richtig? jedoch ohne try/catch block</p>
</blockquote>
<p>Warum ohne Try-Catch? Genau dafür ist es doch zuständig :</p>
<pre><code class="language-cpp">try
{
  // Auslösender Code
  }
catch (TSocketError &amp;Exception)
{
  //ja das war sie....
  }
</code></pre>
<p>Wahrscheinlich hast du falsche Vorstellungen von Exceptions, und dein Konzept passt nicht zu den Mitteln (Exceptions), die du dafür einsetzen willst.</p>
<p>/Edit : Fehler berichtigt</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783752</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 07 May 2005 23:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 23:19:46 GMT]]></title><description><![CDATA[<p>Heureka schrieb:</p>
<blockquote>
<p>ah habs...</p>
<pre><code class="language-cpp">Exception *Error = dynamic_cast&lt;Exception*&gt;(EurekaExceptionRecord.ExceptionObject);
	if(Error &amp;&amp; Error-&gt;ClassNameIs(&quot;ESocketError&quot;))
    {
		//ja das war sie...
    }
</code></pre>
<p>oder gibts da was auszusetze? <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>
</blockquote>
<p>Als Ergänzung :</p>
<pre><code class="language-cpp">if(Error)
</code></pre>
<p>reicht.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783753</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 07 May 2005 23:19:46 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sat, 07 May 2005 23:45:42 GMT]]></title><description><![CDATA[<p>hallo akari! danke für dein posting <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /><br />
du hast schon recht mit dem try/catch, habe ich früher auch angewendet. jedoch ist EurekaLog was feines. kennst du es? wenn nicht, teste es mal und du wirst verstehen warum ich keine try/catch blöcke mehr einsetze bzw. selten.</p>
<blockquote>
<p>Als Ergänzung :<br />
[....]<br />
reicht</p>
</blockquote>
<p>jein würde ich sagen. mit if(Error) frage ich ja nur ab ob der zeiger nicht NULL ist, der exception typ kann dann aber beliebig sein. deswegen möchte ich durch Error-&gt;ClassNameIs wissen, ob es sich um den typ ESocketError handelt udn nicht einen anderen...</p>
<p>oder irre ich mich hier? <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/783759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783759</guid><dc:creator><![CDATA[Heureka]]></dc:creator><pubDate>Sat, 07 May 2005 23:45:42 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sun, 08 May 2005 09:41:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>jein würde ich sagen. mit if(Error) frage ich ja nur ab ob der zeiger nicht NULL ist, der exception typ kann dann aber beliebig sein. deswegen möchte ich durch Error-&gt;ClassNameIs wissen, ob es sich um den typ ESocketError handelt udn nicht einen anderen...</p>
</blockquote>
<p>Du kannst den Cast gleich auf ESocketError machen :</p>
<pre><code class="language-cpp">ESocketError *Error = dynamic_cast&lt;ESocketError*&gt;(EurekaExceptionRecord.ExceptionObject);
if(Error)
{
  }
</code></pre>
<p>Das dynamic_cast sorgt im Gegensatz zu static_cast für eine Typüberprüfung, sodas bei anderen Exceptions als ESocketError das Ergebnis NULL ist.</p>
<p>/Edit : Ich werde mir mal EurekaLog anschauen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/783858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783858</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 08 May 2005 09:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to Eurekalog - Wer kennt sich aus? on Sun, 08 May 2005 10:37:08 GMT]]></title><description><![CDATA[<p>hey cool danke! das macht sinn <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/783894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/783894</guid><dc:creator><![CDATA[Heureka]]></dc:creator><pubDate>Sun, 08 May 2005 10:37:08 GMT</pubDate></item></channel></rss>