<?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[Die Connection (via ODBC)]]></title><description><![CDATA[<p>Die Connection (via ODBC) habe ich wie folgt hinbekommen:<br />
//loginname &amp; loginpass sind Edit Felder</p>
<p>Database1-&gt;DatabaseName =&quot;TESTDB01&quot;;<br />
Database1-&gt;Params-&gt;Values[&quot;user name&quot;] = loginname-&gt;Text;<br />
Database1-&gt;Params-&gt;Values[&quot;password&quot;] = loginpass-&gt;Text;<br />
[/cpp]</p>
<p>Wie kann ich hier abfangen, wenn das Login inkorrekt gewesen ist ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/89982/die-connection-via-odbc</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 18:35:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/89982.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Oct 2004 09:33:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 09:33:34 GMT]]></title><description><![CDATA[<p>Die Connection (via ODBC) habe ich wie folgt hinbekommen:<br />
//loginname &amp; loginpass sind Edit Felder</p>
<p>Database1-&gt;DatabaseName =&quot;TESTDB01&quot;;<br />
Database1-&gt;Params-&gt;Values[&quot;user name&quot;] = loginname-&gt;Text;<br />
Database1-&gt;Params-&gt;Values[&quot;password&quot;] = loginpass-&gt;Text;<br />
[/cpp]</p>
<p>Wie kann ich hier abfangen, wenn das Login inkorrekt gewesen ist ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636860</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 25 Oct 2004 09:33:34 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 09:47:24 GMT]]></title><description><![CDATA[<p>HAB ICH DIR IN DEM ANDEREN FORUM DOCH ERSCHÖPFEND BEANTWORTET!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636871</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 25 Oct 2004 09:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 10:39:07 GMT]]></title><description><![CDATA[<p>Das hier ?</p>
<pre><code class="language-cpp">int LoginCount = 0; 
do 
{ 
	LoginCount++; 
	try 
	{ 
		Database1-&gt;Open(); 
	} 
	catch(...) 
	{ 
		ShowMessage(&quot;Falscher Benutzername oder falsches Kennwort.&quot;); 
		Mitarb-&gt;InforName = &quot;&quot;; 
	} 
} while (!Database1-&gt;Connected &amp;&amp; LoginCount &lt; 3);
</code></pre>
<p>Was mache ich hier mit dem</p>
<pre><code class="language-cpp">catch(...)
</code></pre>
<p>???</p>
<pre><code class="language-cpp">catch(exception &amp; e)
</code></pre>
<p>???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636900</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 25 Oct 2004 10:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 11:00:38 GMT]]></title><description><![CDATA[<p>Du malst es grün an und freust dich. <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>
<p>Was soll &quot;was mach ich mit&quot; heißen? Du sollst es wohl <em>verwenden</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636922</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 25 Oct 2004 11:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 11:11:02 GMT]]></title><description><![CDATA[<p>Ich vermute mal, dass Mike nicht klar war/ist, dass das '...' bedeutet, dass alle Exceptions abgefangenwerden. Er hat möglicherweise vermutet, dass Joe_M das im Sinne von &quot;hier etwas ergänzen&quot; meinte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636933</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 25 Oct 2004 11:11:02 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 11:55:41 GMT]]></title><description><![CDATA[<p>Ja, stimmt genau.<br />
Ich dachte mit (...) ist gemeint hier soll ich noch Syntax einpflegen.</p>
<p>Ich habe 2 Edit Felder (euserlogin &amp; euserpass) welche der User füllt.</p>
<pre><code class="language-cpp">int LoginCount = 0;
 do
 {
  LoginCount++;
  Tabelle1-&gt;Active = false;
  Datenbank1-&gt;DatabaseName =&quot;testdb&quot;;
  Datenbank1-&gt;Params-&gt;Values[&quot;user name&quot;] = euserlogin-&gt;Text;
  Datenbank1-&gt;Params-&gt;Values[&quot;password&quot;] = euserpass-&gt;Text; 
  try
  {
   Datenbank1-&gt;Open();
   Tabelle1-&gt;Active = true;
  }
  catch(...)
  {
   ShowMessage(&quot;Falscher Benutzername oder falsches Kennwort.&quot;);
  }
 } while (!Datenbank1-&gt;Connected &amp;&amp; LoginCount &lt; 3);
</code></pre>
<p>Wenn das Passwort falsch ist,bekomme ich immer die Fehlermeldung / Programmabsturz:</p>
<blockquote>
<p>Allgemeiner SQL-Fehler - Kein zulässiges Kennwort<br />
Prozeß wurde angehalten.Mit Einzelne Anweisung oder Start fortsetzen</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/636977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636977</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 25 Oct 2004 11:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 12:02:38 GMT]]></title><description><![CDATA[<p>Eine Exception ist kein Absturz! Noch nicht mal ne Fehlermeldung! (Ok vielleicht das am ehesten.)</p>
<p>Man kann in der IDE abschalten, dass Exceptions angezeigt werden, obwohl sie behandelt wurden. Wurde hier schon öfters genannt, findet man vielleicht sogar noch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/636990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/636990</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 25 Oct 2004 12:02:38 GMT</pubDate></item><item><title><![CDATA[Reply to Die Connection (via ODBC) on Mon, 25 Oct 2004 12:15:05 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>vielen Dank.</p>
<p>Habe es gefunden und getestet. Funktioniert.<br />
Der Menüpunkt ist unter Tools/ Debugger Options/ Sprach-Exceptions -&gt;Bei C++ Exceptions stoppen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637007</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 25 Oct 2004 12:15:05 GMT</pubDate></item></channel></rss>