<?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[Problem bei Passwortabfrage]]></title><description><![CDATA[<p>Hallo,<br />
Mein Lehrer war so nett und hat uns über die Ferien ein paar Aufgaben zum Programmieren gegeben, und jetzt sitz ich hier zu Hause und hab Probleme.</p>
<p>Ich wollte eine Passwortabfrage machen, das Passwort wird in einem TEdit-Feld eingegeben.</p>
<p>Das ist mein Quelltext:</p>
<p>//--------------------------------------------------------------------<br />
__fastcall TPasswordDlg::TPasswordDlg(TComponent* AOwner)<br />
: TForm(AOwner)<br />
{<br />
pw=&quot;miau&quot;;<br />
}<br />
//---------------------------------------------------------------------<br />
void __fastcall TPasswordDlg::OKBtnClick(TObject *Sender)<br />
{<br />
Close();<br />
if (PasswordDlg-&gt;Password == pw)<br />
{<br />
Form1-&gt;TimerHilfe-&gt;Enabled=true;<br />
Form1-&gt;Hilfe_wird_angezeigt = true;<br />
for (int i=1;i&lt;=20 ;i++ )<br />
{<br />
Form1-&gt;Memory.Feld[i].image-&gt;Visible=true;<br />
}<br />
}<br />
else<br />
{<br />
Application-&gt;MessageBoxA(&quot;Falsches Passwort&quot;,&quot;Fehler&quot;,MB_OK);<br />
}<br />
//------------------------------------------------------------------</p>
<p>Die Variable pw habe ich als AnsiString deklariert. Es erscheint immer nur die MessageBox und folgende Fehlermeldung und ich weiß nicht, was sie bedeutet...</p>
<p>[C++ Fehler] PassWord.cpp(20): E2096 Ungültige Strukturoperation</p>
<p>Kann mir jemand sagen, wie ich mein Problem lösen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196277/problem-bei-passwortabfrage</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 11:27:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196277.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Oct 2007 17:43:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem bei Passwortabfrage on Sat, 27 Oct 2007 17:43:17 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Mein Lehrer war so nett und hat uns über die Ferien ein paar Aufgaben zum Programmieren gegeben, und jetzt sitz ich hier zu Hause und hab Probleme.</p>
<p>Ich wollte eine Passwortabfrage machen, das Passwort wird in einem TEdit-Feld eingegeben.</p>
<p>Das ist mein Quelltext:</p>
<p>//--------------------------------------------------------------------<br />
__fastcall TPasswordDlg::TPasswordDlg(TComponent* AOwner)<br />
: TForm(AOwner)<br />
{<br />
pw=&quot;miau&quot;;<br />
}<br />
//---------------------------------------------------------------------<br />
void __fastcall TPasswordDlg::OKBtnClick(TObject *Sender)<br />
{<br />
Close();<br />
if (PasswordDlg-&gt;Password == pw)<br />
{<br />
Form1-&gt;TimerHilfe-&gt;Enabled=true;<br />
Form1-&gt;Hilfe_wird_angezeigt = true;<br />
for (int i=1;i&lt;=20 ;i++ )<br />
{<br />
Form1-&gt;Memory.Feld[i].image-&gt;Visible=true;<br />
}<br />
}<br />
else<br />
{<br />
Application-&gt;MessageBoxA(&quot;Falsches Passwort&quot;,&quot;Fehler&quot;,MB_OK);<br />
}<br />
//------------------------------------------------------------------</p>
<p>Die Variable pw habe ich als AnsiString deklariert. Es erscheint immer nur die MessageBox und folgende Fehlermeldung und ich weiß nicht, was sie bedeutet...</p>
<p>[C++ Fehler] PassWord.cpp(20): E2096 Ungültige Strukturoperation</p>
<p>Kann mir jemand sagen, wie ich mein Problem lösen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393195</guid><dc:creator><![CDATA[das_kleine_dunkle]]></dc:creator><pubDate>Sat, 27 Oct 2007 17:43:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei Passwortabfrage on Sat, 27 Oct 2007 20:45:38 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Und diese Fehlermeldung bezieht sich auf welche Zeile genau?</p>
<p>Und sfds</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393308</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:45:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei Passwortabfrage on Sat, 27 Oct 2007 20:58:37 GMT]]></title><description><![CDATA[<p>Diese Zeile wird makiert:</p>
<pre><code class="language-cpp">if (PasswordDlg-&gt;Password == pw)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1393319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393319</guid><dc:creator><![CDATA[das_kleine_dunkle]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei Passwortabfrage on Sat, 27 Oct 2007 21:17:29 GMT]]></title><description><![CDATA[<p>Hi</p>
<pre><code>Close();
if (PasswordDlg-&gt;Password == pw)
</code></pre>
<p>Du schließt das Form, und willst DANACH noch damit arbeiten? Schlechte Idee.</p>
<p>mfg<br />
Rai</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393334</guid><dc:creator><![CDATA[raimond]]></dc:creator><pubDate>Sat, 27 Oct 2007 21:17:29 GMT</pubDate></item></channel></rss>