<?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[Win XP Professional Problem]]></title><description><![CDATA[<p>Tach auch,</p>
<p>ich hab da mal ein Problem. Ein ganz simples Programm, das ich geschrieben habe, wird ganz normal mit PostQuitMessage unter WM_DESTROY beendet - zumindest unter Win2K und XP HomeEdition - bei einem Freund mit XP Prof läuft der Prozess munter weiter... Hat irgendjemand eine Idee?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120395/win-xp-professional-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 04:14:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120395.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2005 18:36:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 18:36:42 GMT]]></title><description><![CDATA[<p>Tach auch,</p>
<p>ich hab da mal ein Problem. Ein ganz simples Programm, das ich geschrieben habe, wird ganz normal mit PostQuitMessage unter WM_DESTROY beendet - zumindest unter Win2K und XP HomeEdition - bei einem Freund mit XP Prof läuft der Prozess munter weiter... Hat irgendjemand eine Idee?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870519</guid><dc:creator><![CDATA[Eisberg]]></dc:creator><pubDate>Mon, 12 Sep 2005 18:36:42 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 18:48:27 GMT]]></title><description><![CDATA[<p>Mir fällt spontan ein:</p>
<p>- PostQuitMessage(0) - sieht das auch so aus?<br />
- while(GetMessage(&amp;msg,0,0,0)) - dito?<br />
- Richtige Rückgabewerte in der WndProc?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870527</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 12 Sep 2005 18:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 19:04:29 GMT]]></title><description><![CDATA[<p>1.-3. Leider ja <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/870537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870537</guid><dc:creator><![CDATA[Eisberg]]></dc:creator><pubDate>Mon, 12 Sep 2005 19:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 19:08:32 GMT]]></title><description><![CDATA[<p>Zeig mal Code, kann doch nicht sein. Fängst du WM_CLOSE ab und hast da falsch zurückgegeben? Laufen noch irgendwelche Threads?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870540</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 12 Sep 2005 19:08:32 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 19:11:27 GMT]]></title><description><![CDATA[<p>Code kommt gleich, aber was ich nicht verstehe, wenn ich falsch abfange oder falsch zurückgebe, warum endet das Programm korrekt unter XP Home und Win2k?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870541</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870541</guid><dc:creator><![CDATA[Eisberg]]></dc:creator><pubDate>Mon, 12 Sep 2005 19:11:27 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Mon, 12 Sep 2005 19:18:40 GMT]]></title><description><![CDATA[<pre><code>#include &lt;windows.h&gt;
#include &lt;commdlg.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;commctrl.h&gt;

LRESULT CALLBACK WndProc (HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ) ;

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{
     static TCHAR szAppName[] = TEXT (&quot;HC&quot;) ;
     HWND         hwnd ;
     MSG          msg ;
     WNDCLASS     wndclass ;

     wndclass.style         = CS_HREDRAW | CS_VREDRAW ;
     wndclass.lpfnWndProc   = WndProc ;
     wndclass.cbClsExtra    = 0 ;
     wndclass.cbWndExtra    = 0 ;
     wndclass.hInstance     = hInstance ;
     wndclass.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wndclass.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wndclass.hbrBackground = (HBRUSH) GetStockObject (LTGRAY_BRUSH) ;
     wndclass.lpszMenuName  = szAppName;
     wndclass.lpszClassName = szAppName ;

	 if (!RegisterClass (&amp;wndclass))
	 {
		 MessageBox (NULL, TEXT (&quot;Das Programm braucht NT!&quot;), szAppName, MB_ICONERROR);
		 return 0;
	 }

     hwnd = CreateWindow (szAppName,                 // Name der Fensterklasse
                  TEXT (&quot;HattrickClown&quot;),  // Fenstertitel
                  WS_OVERLAPPEDWINDOW,				   // Fensterstil
                  CW_USEDEFAULT,                      // X-Position des Fensters
                  CW_USEDEFAULT,                      // Y-Position des Fensters
                  700,			                      // Fensterbreite
                  500,						          // Fensterhöhe
                  NULL,                               // übergeordnetes Fenster
                  NULL,                               // Menü
                  hInstance,                          // Programm-Kopiezähler (Programm-ID)
                  NULL) ;                             // zusätzliche Parameter

     ShowWindow (hwnd, iCmdShow) ;
     UpdateWindow (hwnd) ;

     while (GetMessage (&amp;msg, NULL, 0, 0))
     {
          TranslateMessage (&amp;msg) ;
          DispatchMessage (&amp;msg) ;
     }
     return msg.wParam ;
}

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	 static	HINSTANCE	hInstance;
	 static HWND		hwnd_edit, hwnd_edit2, hwnd_edit3;
	 static HWND		hwnd_stat, hwnd_stat2, hwnd_stat3;

	 static int	cxScreen, cyScreen, i, j, k;
	 char			szBuffer[MAX_PATH+2], szBuffer2[256];
	 char			szPfad[MAX_PATH+2];
     char			*pFilename;
	 char			suche[] = &quot;name=&quot;;
	 char			*pch;
	 FILE			*datei;

     switch (message)
     {
     case WM_CREATE:
		 SetLastError(0);
         cxScreen = GetSystemMetrics (SM_CXSCREEN) ;
         cyScreen = GetSystemMetrics (SM_CYSCREEN) ;
		 if ((cxScreen &lt; 800) || (cyScreen &lt; 600))
		 {
			 MessageBox(NULL, TEXT (&quot;Diese Anwendung benötigt mindestens eine Auflösung von 800x600 Pixeln!&quot;), TEXT (&quot;Falsche Auflösung!&quot;), MB_ICONERROR) ;
             PostQuitMessage (0) ;
		 }
         MoveWindow(hwnd,(cxScreen-700)/2,(cyScreen-500)/2,700,500,TRUE);

		 PopFileInitialize(hwnd);
     case WM_SIZE:
         cxScreen = LOWORD (lParam) ;
         cyScreen = HIWORD (lParam) ;
         return 0 ;

	 case WM_DESTROY:
		 PostQuitMessage (0);
		 return 0;
	 }
	 return DefWindowProc (hwnd, message, wParam, lParam) ;
}
</code></pre>
<p>So, dass isser - wo ist jetzt der Fehler?</p>
<p>Edith meinte, ich sollte vielleicht darauf hinweisen, dass einige Subroutinen fehlen, die aber bedeutungslos sein dürften.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870547</guid><dc:creator><![CDATA[Eisberg]]></dc:creator><pubDate>Mon, 12 Sep 2005 19:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Tue, 13 Sep 2005 09:21:07 GMT]]></title><description><![CDATA[<p>Bin mir net sicher, aber mach mal so</p>
<pre><code>switch (message) 
{ 
     case WM_DESTROY: 
         PostQuitMessage (0); 
 //        return 0; 
     return DefWindowProc (hwnd, message, wParam, lParam) ; 
}
</code></pre>
<p>also ohne das &quot;return 0;&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870867</guid><dc:creator><![CDATA[miwitt001]]></dc:creator><pubDate>Tue, 13 Sep 2005 09:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Tue, 13 Sep 2005 10:09:42 GMT]]></title><description><![CDATA[<p>oder füg das hier mal hinzu:</p>
<pre><code class="language-cpp">case WM_CLOSE:
    DestroyWindow( hwnd );
    return 0;
</code></pre>
<p>und fehlt bei WM_CREATE das return 0; mit Absicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/870935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/870935</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Tue, 13 Sep 2005 10:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Tue, 13 Sep 2005 12:07:46 GMT]]></title><description><![CDATA[<p>das return 0; bei WM_CREATE habe ich jetzt nur vergessen mit zu kopieren, steht aber sonst da. Die beiden Varianten werde ich heute abend mal ausprobieren - vielen Dank.</p>
<p>Hat denn jemand eine Idee, woran das denn liegen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/871024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/871024</guid><dc:creator><![CDATA[Eisberg]]></dc:creator><pubDate>Tue, 13 Sep 2005 12:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to Win XP Professional Problem on Tue, 13 Sep 2005 12:10:37 GMT]]></title><description><![CDATA[<p>Dein Code ist richtig, dann ist wohl sein Windows kaputt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/871026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/871026</guid><dc:creator><![CDATA[hahahahahaa]]></dc:creator><pubDate>Tue, 13 Sep 2005 12:10:37 GMT</pubDate></item></channel></rss>