<?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[Fehler bei RegisterClass]]></title><description><![CDATA[<p>Hi,<br />
Ich weiß nicht warum RegisterClass nicht klappt?</p>
<pre><code class="language-cpp">hInstance	= GetModuleHandle(NULL);			
	wc.style			= CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
	wc.lpfnWndProc		= (WNDPROC) WndProc;				
	wc.cbClsExtra		= 0;									
	wc.cbWndExtra		= 0;								
	wc.hInstance		= hInstance;						
	wc.hIcon			= LoadIcon(NULL, IDI_WINLOGO);		
	wc.hCursor		= LoadCursor(NULL, IDC_ARROW);		
	wc.hbrBackground	= NULL;								
	wc.lpszMenuName		= NULL;								
	wc.lpszClassName	= &quot;OpenGL&quot;;	

	int ff;
	ff = RegisterClass(&amp;wc);
	if (ff != 0)
	{

		fehler = GetLastError();
		MessageBox(NULL,&quot;Failed To Register The Window Class.&quot;,&quot;ERROR&quot;,MB_OK|MB_ICONEXCLAMATION);
		 fehler = GetLastError();
		 printf(&quot;%d&quot;,fehler);
		 MessageBox(NULL,fehler,&quot;ERROR&quot;,MB_OK|MB_ICONEXCLAMATION);

	}
</code></pre>
<p>GetLastError liefert mir den Fehler Code 1813 zurück was laut MSDN<br />
&quot;The specified resource type cannot be found in the image file.&quot; heißt...<br />
kann aber leider nichts damit anfangen...<br />
Nicht über das Printf wundern...das Fenster wir aus einem Konsolenprogramm aufgerufen...vorher hat das alles immer Prima Geklappt..<br />
MFG estrag und Frohe Weihnachten :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/95834/fehler-bei-registerclass</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 18:29:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95834.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Dec 2004 19:58:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler bei RegisterClass on Thu, 23 Dec 2004 19:58:39 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich weiß nicht warum RegisterClass nicht klappt?</p>
<pre><code class="language-cpp">hInstance	= GetModuleHandle(NULL);			
	wc.style			= CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
	wc.lpfnWndProc		= (WNDPROC) WndProc;				
	wc.cbClsExtra		= 0;									
	wc.cbWndExtra		= 0;								
	wc.hInstance		= hInstance;						
	wc.hIcon			= LoadIcon(NULL, IDI_WINLOGO);		
	wc.hCursor		= LoadCursor(NULL, IDC_ARROW);		
	wc.hbrBackground	= NULL;								
	wc.lpszMenuName		= NULL;								
	wc.lpszClassName	= &quot;OpenGL&quot;;	

	int ff;
	ff = RegisterClass(&amp;wc);
	if (ff != 0)
	{

		fehler = GetLastError();
		MessageBox(NULL,&quot;Failed To Register The Window Class.&quot;,&quot;ERROR&quot;,MB_OK|MB_ICONEXCLAMATION);
		 fehler = GetLastError();
		 printf(&quot;%d&quot;,fehler);
		 MessageBox(NULL,fehler,&quot;ERROR&quot;,MB_OK|MB_ICONEXCLAMATION);

	}
</code></pre>
<p>GetLastError liefert mir den Fehler Code 1813 zurück was laut MSDN<br />
&quot;The specified resource type cannot be found in the image file.&quot; heißt...<br />
kann aber leider nichts damit anfangen...<br />
Nicht über das Printf wundern...das Fenster wir aus einem Konsolenprogramm aufgerufen...vorher hat das alles immer Prima Geklappt..<br />
MFG estrag und Frohe Weihnachten :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679788</guid><dc:creator><![CDATA[estrago]]></dc:creator><pubDate>Thu, 23 Dec 2004 19:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler bei RegisterClass on Thu, 23 Dec 2004 20:12:19 GMT]]></title><description><![CDATA[<p>Sorry mein Fehler hat sich erledigt.. :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679798</guid><dc:creator><![CDATA[estrago]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:12:19 GMT</pubDate></item></channel></rss>