<?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[Passwortfeld fast fertig]]></title><description><![CDATA[<p>Hallo ich habe ein Problem mit ein Passwortfeld - wie ich schon gesehn habe ,hat sich das erste Theat im Forum zum streit entwickelt weil da wer Müll geschrieben hat (Den &quot;POFIX&quot; sollte man Bannen ) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
<p>ich wollte mal gefragt haben wie ich ich jetzt die Passwortfunktion in Edit hinbekomme ich benutzt INT PW <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> und der Buttoen zeigt mom noch &quot;Nein&quot; an<br />
und ich weis nicht wie ich PW in hEdit machen soll <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
   static HWND  hwndEdit2,hButton;
   int pw;   // Hier
   switch (message)
   {
   case WM_CREATE:
      {

                  hwndEdit2 = CreateWindow( &quot;edit&quot;, &quot;&quot;,
                                  WS_CHILD | WS_VISIBLE ,
                                    120, 10, 100,18,hwnd, (HMENU)0,
                                   (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL);

        hButton = CreateWindow(  &quot;button&quot;,&quot;okey&quot;,WS_CHILD | WS_VISIBLE,0, 0, 0, 0,hwnd,NULL,((LPCREATESTRUCT) lParam) -&gt; hInstance,NULL);

      return 0;
      }

      case WM_SIZE:
      {

        MoveWindow(hButton, LOWORD(lParam) /  120- 0, HIWORD(lParam) - 40, 
                                                           60, 22, TRUE);

         return 0;
      }         

case WM_COMMAND:

// HIER DIE ABFRAGE //

if (lParam == (LPARAM)hButton)

{if (pw==1234)
{
MessageBox( NULL, &quot;okey&quot;, &quot;Überschrift&quot;, MB_OK ); 
}
else
{
MessageBox( NULL, &quot;nein&quot;, &quot;Überschrift&quot;, MB_OK ); 
}
}
return(0);

        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
<p>MfG: Ich <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/207285/passwortfeld-fast-fertig</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 22:18:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/207285.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Mar 2008 17:04:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 17:04:53 GMT]]></title><description><![CDATA[<p>Hallo ich habe ein Problem mit ein Passwortfeld - wie ich schon gesehn habe ,hat sich das erste Theat im Forum zum streit entwickelt weil da wer Müll geschrieben hat (Den &quot;POFIX&quot; sollte man Bannen ) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
<p>ich wollte mal gefragt haben wie ich ich jetzt die Passwortfunktion in Edit hinbekomme ich benutzt INT PW <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> und der Buttoen zeigt mom noch &quot;Nein&quot; an<br />
und ich weis nicht wie ich PW in hEdit machen soll <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
   static HWND  hwndEdit2,hButton;
   int pw;   // Hier
   switch (message)
   {
   case WM_CREATE:
      {

                  hwndEdit2 = CreateWindow( &quot;edit&quot;, &quot;&quot;,
                                  WS_CHILD | WS_VISIBLE ,
                                    120, 10, 100,18,hwnd, (HMENU)0,
                                   (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL);

        hButton = CreateWindow(  &quot;button&quot;,&quot;okey&quot;,WS_CHILD | WS_VISIBLE,0, 0, 0, 0,hwnd,NULL,((LPCREATESTRUCT) lParam) -&gt; hInstance,NULL);

      return 0;
      }

      case WM_SIZE:
      {

        MoveWindow(hButton, LOWORD(lParam) /  120- 0, HIWORD(lParam) - 40, 
                                                           60, 22, TRUE);

         return 0;
      }         

case WM_COMMAND:

// HIER DIE ABFRAGE //

if (lParam == (LPARAM)hButton)

{if (pw==1234)
{
MessageBox( NULL, &quot;okey&quot;, &quot;Überschrift&quot;, MB_OK ); 
}
else
{
MessageBox( NULL, &quot;nein&quot;, &quot;Überschrift&quot;, MB_OK ); 
}
}
return(0);

        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
<p>MfG: Ich <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1468928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468928</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 17:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 17:06:18 GMT]]></title><description><![CDATA[<p><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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468931</guid><dc:creator><![CDATA[pofix]]></dc:creator><pubDate>Wed, 05 Mar 2008 17:06:18 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 17:13:29 GMT]]></title><description><![CDATA[<p>neiiiin lass mich in ruhe ey <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> du machts nur schaden ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468932</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 17:13:29 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 18:28:10 GMT]]></title><description><![CDATA[<p>was du wollen erreichen machen da wo du postet getan?<br />
Willst du wissen, wie du jetzt den Text aus dem Editfeld kriegst?<br />
GetWindowText () zum Auslesen und atoi () zum Umwandeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468982</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Wed, 05 Mar 2008 18:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 18:55:11 GMT]]></title><description><![CDATA[<p>COOOOOL DANKE !!!</p>
<p>1000 Dank <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>jetzt muss ich das nur noch zum laufen bekommen und halt ES_PASSORT setzen</p>
<p><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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468996</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 18:55:11 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 19:10:12 GMT]]></title><description><![CDATA[<p>tja, wenn du dich registrieren würdest, würde dir pofix nichtmehr dazwischenfunken... kann ja keiner wissen, dass du deinen namen gewechselt hast. hast du ja jetzt auch wieder gemacht...</p>
<p>aus deinem post oben wird man übrigends wieder nicht schlau...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469003</guid><dc:creator><![CDATA[Machine]]></dc:creator><pubDate>Wed, 05 Mar 2008 19:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 19:29:42 GMT]]></title><description><![CDATA[<p>okey aber ich schwöre das ich nicht pofix bin ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>und eine frage noch muss ich das so machen ?</p>
<pre><code class="language-cpp">if (lParam == (LPARAM)hButton)

{if (GetWindowText(hwnd, PW, 100))
{
MessageBox( NULL, &quot;okey&quot;, &quot;Überschrift&quot;, MB_OK );
}
else
{
MessageBox( NULL, &quot;nein&quot;, &quot;Überschrift&quot;, MB_OK );
}
}
</code></pre>
<p>oder wie - weil ich nichs in google finde</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469022</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 19:29:42 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 19:31:11 GMT]]></title><description><![CDATA[<p>hast du dir mal die dokumentation zu den beiden funktionen angeguckt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469024</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Wed, 05 Mar 2008 19:31:11 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 19:56:36 GMT]]></title><description><![CDATA[<p>noch nicht und diese microsoft seite finde ich zu komplizirt da kann man das nicht nachlesen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469043</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 19:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 19:58:33 GMT]]></title><description><![CDATA[<p>so schwierig ist das jetzt eigentlich nicht, wort in das suchfeld eingeben und enter drückebn, ergebnis raussuchen -&gt; fertig!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469045</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Wed, 05 Mar 2008 19:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 20:41:10 GMT]]></title><description><![CDATA[<p>sorry aber...troll?</p>
<p>du findest das bei google nicht?<br />
-&gt; <a href="http://msdn2.microsoft.com/en-us/library/ms633520(VS.85).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms633520(VS.85).aspx</a><br />
das ist der erste Treffer zu &quot;GetWindowText&quot;, auf deine &quot;Microsoft&quot;-Seite.</p>
<p>da steht zunächst eine Erklärung, dann unter Syntax der Rückgabe-Typ und die Anzahl und Typen der Argumente.<br />
darunter siehst du eine Erklärung zu jedem einzelnen Argument.</p>
<p>unter &quot;Return Value&quot; sind Bedeutungen für die Rückgabewerte erklärt, und die &quot;Remarks&quot; Section kann bei evt. Problem auch recht Hilfreich sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>eigentlich sehr Übersicht so eine Funktionsbeschreibung, findste nich?</p>
<p>zum Funktionsaufruf. die MSDN sagt dir:</p>
<blockquote>
<p>pString<br />
[out] Pointer to the buffer that will receive the text.[...]</p>
</blockquote>
<p><strong>out</strong> sagt dir: darin wird geschrieben. &quot;that will receive the text&quot; verdeutlicht das ganze nochmals: hier wird ein puffer befüllt. vom typ LPTSTR.<br />
aber LPTSTR ist nicht int. aber deine variable PW ist int.<br />
merkste was?</p>
<p>lies nochmals einige post weiter oben .. oder Strg+F und atof <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469066</guid><dc:creator><![CDATA[Xantus]]></dc:creator><pubDate>Wed, 05 Mar 2008 20:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 21:09:36 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> boar ich komm jetzt voll nicht mehr kla wie ich das machen muss</p>
<p>1000 function und jetzt hab ich nen fetten hänger im kopf</p>
<p>bitte helft mir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469082</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 21:09:36 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 21:20:02 GMT]]></title><description><![CDATA[<p>also ich hab jetzt so gemacht:</p>
<pre><code class="language-cpp">... 

char* pw = &quot;1234&quot;;

case WM_COMMAND:
{

if (lParam == (LPARAM)hButton)

{

//  weis ich noch nicht wie und was hier rein muss 

{
MessageBox( NULL, &quot;okey&quot;, &quot;Überschrift&quot;, MB_OK );
}
}
else
{
MessageBox( NULL, &quot;nein&quot;, &quot;Überschrift&quot;, MB_OK );
}

}
return(0);

// GetWindowText(hwnd, pw,NULL)); schwirt mir in kopf rum 

// und in hEdit ... will ich irgentwie &quot;pw&quot; einsetzen
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469087</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469087</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Wed, 05 Mar 2008 21:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 21:27:10 GMT]]></title><description><![CDATA[<p>Nimm einmal MessageBox<strong>A</strong>(...)!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469088</guid><dc:creator><![CDATA[eldorado is great!]]></dc:creator><pubDate>Wed, 05 Mar 2008 21:27:10 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Wed, 05 Mar 2008 21:48:32 GMT]]></title><description><![CDATA[<p>Meine Güte...<br />
Wird wohl irgendwie Trend: Solange dumms stellen, bis man es gemacht bekommt...<br />
Muss bei dir jetzt nicht der Fall sein, kann ja sein, dass du noch nicht so viel Erfahrung mit der WinAPI hast, deshalb bin ich mal nicht so. Allerdings werde ich den Trend nicht weiter unterstützen, weil es nervt mich ein bisschen, weil es in letzter Zeit wirklich fast ausschließlich so ist.</p>
<p>Hier ein kleines Beispiel, musst du nur an deine Situation anpassen:</p>
<pre><code class="language-cpp">char lpBuffer[50];
...
GetWindowText (hWnd, lpBuffer, 50);        //1. Parameter: Fensterhandle, 2. Parameter: Textpuffer, 3. Parameter: Anzahl an auszulesenden Zeichen

if (lstrcmp (lpBuffer, &quot;Passwort&quot;) == 0)
    MessageBox (NULL, &quot;Passwort gültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK)
else
    MessageBox (NULL, &quot;Passwort ungültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1469096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469096</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Wed, 05 Mar 2008 21:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 11:14:13 GMT]]></title><description><![CDATA[<p><a href="http://www.gidf.de/" rel="nofollow">Hier findest du die Lösung vorgekaut!</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469258</guid><dc:creator><![CDATA[Klofix]]></dc:creator><pubDate>Thu, 06 Mar 2008 11:14:13 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 13:04:39 GMT]]></title><description><![CDATA[<p><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="😃"
    /> naja ich habs ja jetzt - danke nochmal und bitte seit nicht so gemein zu mir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p><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="🕶"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469362</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Thu, 06 Mar 2008 13:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 13:06:55 GMT]]></title><description><![CDATA[<p>man kanns mit smileys auch übertreiben. poste doch mal deine lösung, ich bin ja gespannt, was du eigentlich meintest <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1469367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469367</guid><dc:creator><![CDATA[Machine]]></dc:creator><pubDate>Thu, 06 Mar 2008 13:06:55 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 14:26:30 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> manno ich will ja nur die function das der das aus edit abfragt ABER WIE ???? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;WindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

   char lpBuffer[50] = &quot;123&quot;;

   static HWND  hwndEdit2,hButton;

   switch (message)
   {
   case WM_CREATE:
      {

       hwndEdit2 = CreateWindow( &quot;edit&quot;, &quot;&quot;,
                                  WS_CHILD | WS_VISIBLE ,
                                    120, 10, 100,18,hwnd, (HMENU)0,
                                   (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), lpBuffer);

        hButton = CreateWindow(  &quot;button&quot;,&quot;okey&quot;,WS_CHILD | WS_VISIBLE,0, 0, 0, 0,hwnd,NULL,((LPCREATESTRUCT) lParam) -&gt; hInstance,NULL);

      return 0;
      }

      case WM_SIZE:
      {

        MoveWindow(hButton, LOWORD(lParam) /  120- 0, HIWORD(lParam) - 40,
                                                           60, 22, TRUE);

         return 0;
      }        

GetWindowText ( hwndEdit2, lpBuffer, 50);      

case WM_COMMAND: 

if (lParam == (LPARAM)hButton)
{

if (lstrcmp (lpBuffer, &quot;Passwort&quot;) == 0)
{
 MessageBox (NULL, &quot;Passwort gültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK);
}

else
{
 MessageBox (NULL, &quot;Passwort ungültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK);
}
}
return(0); 

        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1469427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469427</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Thu, 06 Mar 2008 14:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 14:40:29 GMT]]></title><description><![CDATA[<p>Ähmm ja du hast das falsch umgesetzt.<br />
Du musst das Editfeld da auslesen, wo du den inhalt verwenden willst, also bei dir in WM_COMMAND</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469441</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Thu, 06 Mar 2008 14:40:29 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 19:13:17 GMT]]></title><description><![CDATA[<p>[quote=&quot;Fake oder Echt&quot;<br />
Du musst das Editfeld da auslesen, wo du den inhalt verwenden willst, also bei dir in WM_COMMAND[/quote]</p>
<p><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="🙄"
    /> ich mag schon garnicht mehr fragen aber wie meinte das?</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469636</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Thu, 06 Mar 2008 19:13:17 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 19:28:24 GMT]]></title><description><![CDATA[<p>Du willst uns echt verarschen, oder? Kontrollstrukturen kennst du nicht zufällig?</p>
<p>Ganz einfach, du packst den Aufruf von Zeile 116 in Zeile 123.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469643</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469643</guid><dc:creator><![CDATA[Xantus]]></dc:creator><pubDate>Thu, 06 Mar 2008 19:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 19:35:32 GMT]]></title><description><![CDATA[<p>ALSO erstmal ein ganz tolles Lob an alle die mir geholfen haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>und jetztz nochmal für dumme (für mich <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="😃"
    /> und für andere P*FIX`e )</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;WindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

   char lpBuffer[50] = &quot;123&quot;;

   static HWND  hwndEdit2,hButton;

   switch (message)
   {
   case WM_CREATE:
      {

       hwndEdit2 = CreateWindow( &quot;edit&quot;, &quot;&quot;,
                                  WS_CHILD | WS_VISIBLE | ES_PASSWORD,
                                    120, 10, 100,18,hwnd, (HMENU)0,
                                   (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), lpBuffer);

        hButton = CreateWindow(  &quot;button&quot;,&quot;okey&quot;,WS_CHILD | WS_VISIBLE,0, 0, 0, 0,hwnd,NULL,((LPCREATESTRUCT) lParam) -&gt; hInstance,NULL);

      return 0;
      }

      case WM_SIZE:
      {

        MoveWindow(hButton, LOWORD(lParam) /  120- 0, HIWORD(lParam) - 40,
                                                           60, 22, TRUE);

         return 0;
      }        

case WM_COMMAND:

if (lParam == (LPARAM)hButton)
{
GetWindowText ( hwndEdit2, lpBuffer, 50);       
if (lstrcmp (lpBuffer, &quot;123&quot;) == 0)
{
 MessageBox (NULL, &quot;Passwort gültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK);
}

else
{
 MessageBox (NULL, &quot;Passwort ungültig!&quot;, &quot;Passwort-Abfrage&quot;, MB_OK);
}
}
return(0);

        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
<p>schönen tag noch und nochmals danke <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="🕶"
    /> <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="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1469645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469645</guid><dc:creator><![CDATA[Rocketman]]></dc:creator><pubDate>Thu, 06 Mar 2008 19:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to Passwortfeld fast fertig on Thu, 06 Mar 2008 21:13:03 GMT]]></title><description><![CDATA[<p>naja wenigstens zahlt sich die geduld bei dir aus...<br />
nicht wie bei anderen <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/1469713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1469713</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Thu, 06 Mar 2008 21:13:03 GMT</pubDate></item></channel></rss>