<?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[Compilerfehler (was: Hilfe!!!!!!)]]></title><description><![CDATA[<p>bin noch nicht lang am c++ Programmieren und dreh momentan total ab wo ist mein fehler??????</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

HWND CreateMainWindow(HINSTANCE hInstance);

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
HWND hWnd =0;

int WINAPI WinMain(HINSTANCE hInstance,
				   HINSTANCE hPrevInstance,
				   LPSTR IpCmdLine,
				   int nCmdShow)

{
	hWnd = CreateMainWindow(hInstance);

	if(0 == hWnd)
    {
        MessageBox(0,&quot;Fenster konnte nicht erzeugt werden&quot;,&quot;Fehler&quot;,MB_OK);
        return 0;
    }
	MSG msg;

	while(GetMessage(&amp;msg,NULL,0,0))
	{
    		// Nachricht an die Callbackfunktion senden
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
    }
	return 0;
}

HWND CreateMainWindow(HINSTANCE hInstance)
{
	WNDCLASSEX wndClass;

	wndClass.cbSize				= sizeof(WNDCLASSEX);
	wndClass.style				= CS_DBLCLKS | CS_OWNDC |
                                  CS_HREDRAW | CS_VREDRAW;

	wndClass.lpfnWndProc		= MessageHandler;

	wndClass.cbClsExtra			= 0;
	wndClass.cbWndExtra			= 0;
	wndClass.hInstance			= hInstance;

	wndClass.hbrBackground		= (HBRUSH)GetStockObject(WHITE_BRUSH);
	wndClass.hCursor			= LoadCursor(NULL, IDC_ARROW);
	wndClass.lpszMenuName		= NULL;
	wndClass.lpszClassName		= &quot;WindowClass&quot;;
	wndClass.hIcon				= LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo
    wndClass.hIconSm            = LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo

	RefisterClassEx(&amp;wndClass);

	return CreateWindowEx(NULL,                   // Keine erweiterten Stile nutzen
                          &quot;WindowClass&quot;,          // Klassenname
                          &quot;Hello Windows&quot;,        // Fenstertitel
                          WS_OVERLAPPEDWINDOW |   // Fenster
                          WS_VISIBLE,             // Eigenschaften
                          0, 0, 400, 300,         // Anfangsposition und Größe
                          NULL,                   // Handle des Elternfensters
                          NULL,                   // Handle des Menüs
                          hInstance,              // Anwendungsinstanz
                          NULL);
}

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    // testen, um welche Nachticht es sich handelt
    switch(msg)
    {
        // wenn das Fenster geschlossen wird, eine Nachricht senden,
        // die das Programm beendet
        case WM_DESTROY:
                    PostQuitMessage(0);
                    return 0;
                break;       
    }
return (DefWindowProc(hwnd, msg, wParam, lParam));
}
</code></pre>
<p>edit: sfds</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/85194/compilerfehler-was-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 23:24:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/85194.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Sep 2004 15:31:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 22:12:42 GMT]]></title><description><![CDATA[<p>bin noch nicht lang am c++ Programmieren und dreh momentan total ab wo ist mein fehler??????</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;

HWND CreateMainWindow(HINSTANCE hInstance);

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
HWND hWnd =0;

int WINAPI WinMain(HINSTANCE hInstance,
				   HINSTANCE hPrevInstance,
				   LPSTR IpCmdLine,
				   int nCmdShow)

{
	hWnd = CreateMainWindow(hInstance);

	if(0 == hWnd)
    {
        MessageBox(0,&quot;Fenster konnte nicht erzeugt werden&quot;,&quot;Fehler&quot;,MB_OK);
        return 0;
    }
	MSG msg;

	while(GetMessage(&amp;msg,NULL,0,0))
	{
    		// Nachricht an die Callbackfunktion senden
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
    }
	return 0;
}

HWND CreateMainWindow(HINSTANCE hInstance)
{
	WNDCLASSEX wndClass;

	wndClass.cbSize				= sizeof(WNDCLASSEX);
	wndClass.style				= CS_DBLCLKS | CS_OWNDC |
                                  CS_HREDRAW | CS_VREDRAW;

	wndClass.lpfnWndProc		= MessageHandler;

	wndClass.cbClsExtra			= 0;
	wndClass.cbWndExtra			= 0;
	wndClass.hInstance			= hInstance;

	wndClass.hbrBackground		= (HBRUSH)GetStockObject(WHITE_BRUSH);
	wndClass.hCursor			= LoadCursor(NULL, IDC_ARROW);
	wndClass.lpszMenuName		= NULL;
	wndClass.lpszClassName		= &quot;WindowClass&quot;;
	wndClass.hIcon				= LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo
    wndClass.hIconSm            = LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo

	RefisterClassEx(&amp;wndClass);

	return CreateWindowEx(NULL,                   // Keine erweiterten Stile nutzen
                          &quot;WindowClass&quot;,          // Klassenname
                          &quot;Hello Windows&quot;,        // Fenstertitel
                          WS_OVERLAPPEDWINDOW |   // Fenster
                          WS_VISIBLE,             // Eigenschaften
                          0, 0, 400, 300,         // Anfangsposition und Größe
                          NULL,                   // Handle des Elternfensters
                          NULL,                   // Handle des Menüs
                          hInstance,              // Anwendungsinstanz
                          NULL);
}

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    // testen, um welche Nachticht es sich handelt
    switch(msg)
    {
        // wenn das Fenster geschlossen wird, eine Nachricht senden,
        // die das Programm beendet
        case WM_DESTROY:
                    PostQuitMessage(0);
                    return 0;
                break;       
    }
return (DefWindowProc(hwnd, msg, wParam, lParam));
}
</code></pre>
<p>edit: sfds</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600850</guid><dc:creator><![CDATA[FAku187]]></dc:creator><pubDate>Mon, 06 Sep 2004 22:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:34:04 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<blockquote>
<p>bin noch nicht lang am c++ Programmieren und dreh momentan total ab wo ist mein fehler??????</p>
</blockquote>
<p>und offenbar auch noch nicht lange in Foren.</p>
<p>- Dein Code ist kein Standard C++<br />
- Der Titel ist totaler Mist<br />
- Keine Codetags<br />
- Was soll der Code tun, was funktioniert nicht etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600852</guid><dc:creator><![CDATA[CarstenJ]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:37:39 GMT]]></title><description><![CDATA[<p>der Complinder zeigt einen Fehler an nur einen und ich kann ihn einfach nicht finden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600857</guid><dc:creator><![CDATA[FAku187]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:37:39 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:41:11 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include&lt;windows.h&gt;

HWND CreateMainWindow(HINSTANCE hInstance);

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
HWND hWnd =0;

int WINAPI WinMain(HINSTANCE hInstance,
				   HINSTANCE hPrevInstance,
				   LPSTR IpCmdLine,
				   int nCmdShow)

{
	hWnd = CreateMainWindow(hInstance);

	if(0 == hWnd)
    {
        MessageBox(0,&quot;Fenster konnte nicht erzeugt werden&quot;,&quot;Fehler&quot;,MB_OK);
        return 0;
    }
	MSG msg;

	while(GetMessage(&amp;msg,NULL,0,0))
	{
    		// Nachricht an die Callbackfunktion senden
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
    }
	return 0;
}

HWND CreateMainWindow(HINSTANCE hInstance)
{
	WNDCLASSEX wndClass;

	wndClass.cbSize				= sizeof(WNDCLASSEX);
	wndClass.style				= CS_DBLCLKS | CS_OWNDC |
                                  CS_HREDRAW | CS_VREDRAW;

	wndClass.lpfnWndProc		= MessageHandler;

	wndClass.cbClsExtra			= 0;
	wndClass.cbWndExtra			= 0;
	wndClass.hInstance			= hInstance;

	wndClass.hbrBackground		= (HBRUSH)GetStockObject(WHITE_BRUSH);
	wndClass.hCursor			= LoadCursor(NULL, IDC_ARROW);
	wndClass.lpszMenuName		= NULL;
	wndClass.lpszClassName		= &quot;WindowClass&quot;;
	wndClass.hIcon				= LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo
    wndClass.hIconSm            = LoadIcon(NULL, IDI_WINLOGO);  // Windows Logo

	RefisterClassEx(&amp;wndClass);

	return CreateWindowEx(NULL,                   // Keine erweiterten Stile nutzen
                          &quot;WindowClass&quot;,          // Klassenname
                          &quot;Hello Windows&quot;,        // Fenstertitel
                          WS_OVERLAPPEDWINDOW |   // Fenster
                          WS_VISIBLE,             // Eigenschaften
                          0, 0, 400, 300,         // Anfangsposition und Größe
                          NULL,                   // Handle des Elternfensters
                          NULL,                   // Handle des Menüs
                          hInstance,              // Anwendungsinstanz
                          NULL);
}

LRESULT CALLBACK MessageHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    // testen, um welche Nachticht es sich handelt
    switch(msg)
    {
        // wenn das Fenster geschlossen wird, eine Nachricht senden,
        // die das Programm beendet
        case WM_DESTROY:
                    PostQuitMessage(0);
                    return 0;
                break;       
    }
return (DefWindowProc(hwnd, msg, wParam, lParam));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/600862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600862</guid><dc:creator><![CDATA[Faku]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:41:11 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:41:57 GMT]]></title><description><![CDATA[<p>FAku187 schrieb:</p>
<blockquote>
<p>der Complinder zeigt einen Fehler an nur einen und ich kann ihn einfach nicht finden</p>
</blockquote>
<p>Was ist das für ein Satz?</p>
<p>Mir scheint, das der Code ein Beispiel ist und du ihn nicht selbst gemacht hast. Sehe ich das richtig?</p>
<p>PS: Bitte editiere deinen Post und füge codetags ein. Siehe FAQ wenn du nicht weißt was das ist. Die gehen mit [ cpp] und am ende des Codes [ /cpp]. Ohne die Leerzeichen.</p>
<p>Edit: Ok, hat sich erledigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600863</guid><dc:creator><![CDATA[randa]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:48:58 GMT]]></title><description><![CDATA[<p>Teilweise ich habe die Komponenten aus verschidenen Beispielen aus meinem buch zusammengeschrieben , da zu diesem tema keine kompllettlösung da war <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="🙄"
    /> <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="🙄"
    /> <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/600874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600874</guid><dc:creator><![CDATA[Faku187]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:54:49 GMT]]></title><description><![CDATA[<p>FAku187 schrieb:</p>
<blockquote>
<p>der Complinder zeigt einen Fehler an nur einen und ich kann ihn einfach nicht finden</p>
</blockquote>
<p>Der da wäre ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600881</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 15:59:19 GMT]]></title><description><![CDATA[<p>das mein ich:<br />
1win.exe - 1 error(s), 0 warning(s)</p>
<p>deine Farge kann ich leider nicht beantworten mangels wissen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600885</guid><dc:creator><![CDATA[Faku187]]></dc:creator><pubDate>Mon, 06 Sep 2004 15:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 16:03:19 GMT]]></title><description><![CDATA[<p>mach mal aus dem f ein g bei</p>
<p>RegisterClassEx(&amp;wndClass);</p>
<p>und les die warnungen ordentlich durch.</p>
<p>und das nächste mal in winapi fragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600892</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 06 Sep 2004 16:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 16:05:29 GMT]]></title><description><![CDATA[<p>dein compiler zeigt keine fehlermeldungen wie</p>
<p>error(15):user cant find this error, because he dont know how this ide works</p>
<p>über der fehlerstatistik an? such nochmal, ich bin sicher, du findest da was <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/600893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600893</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 06 Sep 2004 16:05:29 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 16:06:12 GMT]]></title><description><![CDATA[<p>dafür lieb ich dich<br />
nun bin ich ein Windows programmierer zwar ein witz von einem doch ich bin einer<br />
Danke!!!!!!!!!!!!!!!! <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/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/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/600894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600894</guid><dc:creator><![CDATA[Faku187]]></dc:creator><pubDate>Mon, 06 Sep 2004 16:06:12 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 16:23:49 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>error(15):user cant find this error, because he dont know how this ide works</p>
</blockquote>
<p>Bei der Grammatik, hilfst du ihm auch nicht weiter... <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/600908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600908</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Mon, 06 Sep 2004 16:23:49 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 18:37:27 GMT]]></title><description><![CDATA[<p>Shlo schrieb:</p>
<blockquote>
<p>otze schrieb:</p>
<blockquote>
<p>error(15):user cant find this error, because he dont know how this ide works</p>
</blockquote>
<p>Bei der Grammatik, hilfst du ihm auch nicht weiter... <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>
</blockquote>
<p>Hauptsache flamen! <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="😡"
    /> <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="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/601036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601036</guid><dc:creator><![CDATA[rasmus]]></dc:creator><pubDate>Mon, 06 Sep 2004 18:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler (was: Hilfe!!!!!!) on Mon, 06 Sep 2004 20:26:17 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/601119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601119</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 06 Sep 2004 20:26:17 GMT</pubDate></item></channel></rss>