<?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[Was mache ich hier falsch?]]></title><description><![CDATA[<p>Hier erstmal der Code:</p>
<pre><code class="language-cpp">try
  {
    Passwort = StrToInt (Edit1-&gt;Text);
    if (Passwort == &quot;zahlen&quot;)
      ShowWindow(FindWindow(&quot;Shell_TrayWnd&quot;, NULL), SW_SHOW);
      HWND hDesktop,hListView;
      hDesktop = FindWindowEx(FindWindow(&quot;Progman&quot;,0),0,&quot;SHELLDLL_DefView&quot;,0);
      hListView = FindWindowEx(hDesktop,0,&quot;SysListView32&quot;,0);
      ShowWindow(hListView, SW_RESTORE);
      Close ();
  }
  catch (...)
  {
  }
</code></pre>
<p>Ich denke, man kann erkennen was ich vor habe. Aber egal. Ich will, das wenn das richtige Passwort eingegeben wird die Taskleiste und die Desktopsymbole wieder sichtbar werden. Mit der Taskleiste, funktioniert es auch, aber die Desktopsymbole werden auch wieder sichtbar wenn man ein Falsches Passwort eingegeben hat.</p>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160262/was-mache-ich-hier-falsch</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 04:32:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160262.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Sep 2006 00:57:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 00:57:08 GMT]]></title><description><![CDATA[<p>Hier erstmal der Code:</p>
<pre><code class="language-cpp">try
  {
    Passwort = StrToInt (Edit1-&gt;Text);
    if (Passwort == &quot;zahlen&quot;)
      ShowWindow(FindWindow(&quot;Shell_TrayWnd&quot;, NULL), SW_SHOW);
      HWND hDesktop,hListView;
      hDesktop = FindWindowEx(FindWindow(&quot;Progman&quot;,0),0,&quot;SHELLDLL_DefView&quot;,0);
      hListView = FindWindowEx(hDesktop,0,&quot;SysListView32&quot;,0);
      ShowWindow(hListView, SW_RESTORE);
      Close ();
  }
  catch (...)
  {
  }
</code></pre>
<p>Ich denke, man kann erkennen was ich vor habe. Aber egal. Ich will, das wenn das richtige Passwort eingegeben wird die Taskleiste und die Desktopsymbole wieder sichtbar werden. Mit der Taskleiste, funktioniert es auch, aber die Desktopsymbole werden auch wieder sichtbar wenn man ein Falsches Passwort eingegeben hat.</p>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143288</guid><dc:creator><![CDATA[kalero]]></dc:creator><pubDate>Sun, 24 Sep 2006 00:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 01:54:57 GMT]]></title><description><![CDATA[<p>alles was passieren soll, wenn das PW wahr ist, nach der 'if' Bedingung in Klammern setzen '{......}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143290</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Sun, 24 Sep 2006 01:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 05:36:40 GMT]]></title><description><![CDATA[<p>Was solln das?<br />
Erst wandelst du Edit1-&gt;Text in eine Zahl um, danach vergleichst du die Zahl mit einem String...?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143297</guid><dc:creator><![CDATA[GCoder]]></dc:creator><pubDate>Sun, 24 Sep 2006 05:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 05:45:12 GMT]]></title><description><![CDATA[<p>OldMan00 schrieb:</p>
<blockquote>
<p>alles was passieren soll, wenn das PW wahr ist, nach der 'if' Bedingung in Klammern setzen '{......}</p>
</blockquote>
<p>Vielen dank, jetzt klappt alles.</p>
<p>GCoder schrieb:</p>
<blockquote>
<p>Was solln das?<br />
Erst wandelst du Edit1-&gt;Text in eine Zahl um, danach vergleichst du die Zahl mit einem String...?</p>
</blockquote>
<p>Ich hab da nicht wirklich nen String drine. &quot;zahlen&quot; hab ich hier nur anstelle des Passwortes geschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143299</guid><dc:creator><![CDATA[kalero]]></dc:creator><pubDate>Sun, 24 Sep 2006 05:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 07:55:43 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>^Du kannst StrToIntDef verwenden, damm brauchst du kein try-catch.<br />
Allerdings finde ich es sehr schlecht, nur Zahlen als Passwort zuzulassen. Schließlich heißt es Pass<strong>wort</strong>, und jede Beschränkung auf eine Zeichengruppe (bei dir Zahlen) vereinfacht Angriffe auf das Passwort. Also wandle nicht in Zahlen um, sondern vergleiche gleich auf Strings, und du schlägst zwei Fliegen mit einer Klappe.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143307</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 24 Sep 2006 07:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 08:05:37 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>^Du kannst StrToIntDef verwenden, damm brauchst du kein try-catch.<br />
Allerdings finde ich es sehr schlecht, nur Zahlen als Passwort zuzulassen. Schließlich heißt es Pass<strong>wort</strong>, und jede Beschränkung auf eine Zeichengruppe (bei dir Zahlen) vereinfacht Angriffe auf das Passwort. Also wandle nicht in Zahlen um, sondern vergleiche gleich auf Strings, und du schlägst zwei Fliegen mit einer Klappe.</p>
<p>bis bald<br />
akari</p>
</blockquote>
<p>Danke, mit StrToIntDef probier ich nachher gleich mal aus.</p>
<p>Kannst du mir ein bisschen genauer erklären, wie ich auch wörter zulassen kann?<br />
Ich bin noch Anfänger und hab nicht soviel Ahnung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143310</guid><dc:creator><![CDATA[kalero]]></dc:creator><pubDate>Sun, 24 Sep 2006 08:05:37 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 08:08:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">try
  {
    Passwort = Edit1-&gt;Text;
    if (Passwort == &quot;wort&quot;){
      ShowWindow(FindWindow(&quot;Shell_TrayWnd&quot;, NULL), SW_SHOW);
      HWND hDesktop,hListView;
      hDesktop = FindWindowEx(FindWindow(&quot;Progman&quot;,0),0,&quot;SHELLDLL_DefView&quot;,0);
      hListView = FindWindowEx(hDesktop,0,&quot;SysListView32&quot;,0);
      ShowWindow(hListView, SW_RESTORE);
      Close ();
      }
  }
  catch (...)
  {
  }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1143311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143311</guid><dc:creator><![CDATA[GCoder]]></dc:creator><pubDate>Sun, 24 Sep 2006 08:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 08:39:06 GMT]]></title><description><![CDATA[<p>Danke.<br />
Ich hatte zwar erst Probleme mit der Variablen Vereinbarung, aber dann hab ich es hin bekommen.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7971">@akari</a>:<br />
Das mit StrToIntDef hab ich aber nicht hinbekommen. habs deshalb wieder zu try-catch geändert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143321</guid><dc:creator><![CDATA[kalero]]></dc:creator><pubDate>Sun, 24 Sep 2006 08:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 09:25:36 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>Das mit StrToIntDef hab ich aber nicht hinbekommen.</p>
</blockquote>
<p>Was verstehst du unter &quot;nicht hinbekommen&quot;? Was ist so schwer daran?</p>
<pre><code class="language-cpp">Passwort = StrToIntDef (Edit1-&gt;Text, 0); // Wenn Edit1-&gt;text nicht in eine Integer-Zahl umgewandelt werden kann, wird 0 zurückgegeben
</code></pre>
<p>Allerdings ist das durch den String-Vergleich auch nicht mehr nötig.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143353</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 24 Sep 2006 09:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich hier falsch? on Sun, 24 Sep 2006 10:25:47 GMT]]></title><description><![CDATA[<p>Ich weiß auch nicht, warum es nicht geklappt hat. könnte es daran liegen, das ich &quot;, 0&quot; nicht geschrieben habe?<br />
Aber ist auch egal. Mit try-catch funktioniert es einwnadfrei und denn ist es Okay.</p>
<p>Aber trotzdem danke, das du mir helfen wolltest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143381</guid><dc:creator><![CDATA[kalero]]></dc:creator><pubDate>Sun, 24 Sep 2006 10:25:47 GMT</pubDate></item></channel></rss>