<?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 in Make Window]]></title><description><![CDATA[<p>Hi,</p>
<p>die Funktion MakeWindow() gibt immer ein Fehler zurück:</p>
<pre><code class="language-cpp">bool MakeWindow(int iWidth, int iHeight)
{
  // our window class
  WNDCLASS wndWc;

  wndWc.style = CS_OWNDC;
  wndWc.lpfnWndProc = (WNDPROC) DialogProc;
  wndWc.cbClsExtra = 0;
  wndWc.cbWndExtra = 0;
  wndWc.hInstance = GetModuleHandle(NULL);
  wndWc.hIcon = NULL;
  wndWc.hCursor = LoadCursor(0, IDC_ARROW);
  wndWc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  wndWc.lpszMenuName = NULL;
  wndWc.lpszClassName = &quot;w32skin&quot;;

  if (!RegisterClass(&amp;wndWc)) {
      cout &lt;&lt;&quot;error reg&quot; &lt;&lt; endl;
      return false;
  }

  hWnd = CreateWindow(&quot;w32skin&quot;, &quot;       w32skin&quot;,
                      WS_OVERLAPPEDWINDOW,
                      100,100, iWidth,iHeight,
                      NULL, NULL, GetModuleHandle(NULL), NULL);
  return (hWnd?true:false);

}
</code></pre>
<p>Weiß jemand warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233098/fehler-in-make-window</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 07:26:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233098.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Jan 2009 15:10:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 15:10:50 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>die Funktion MakeWindow() gibt immer ein Fehler zurück:</p>
<pre><code class="language-cpp">bool MakeWindow(int iWidth, int iHeight)
{
  // our window class
  WNDCLASS wndWc;

  wndWc.style = CS_OWNDC;
  wndWc.lpfnWndProc = (WNDPROC) DialogProc;
  wndWc.cbClsExtra = 0;
  wndWc.cbWndExtra = 0;
  wndWc.hInstance = GetModuleHandle(NULL);
  wndWc.hIcon = NULL;
  wndWc.hCursor = LoadCursor(0, IDC_ARROW);
  wndWc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  wndWc.lpszMenuName = NULL;
  wndWc.lpszClassName = &quot;w32skin&quot;;

  if (!RegisterClass(&amp;wndWc)) {
      cout &lt;&lt;&quot;error reg&quot; &lt;&lt; endl;
      return false;
  }

  hWnd = CreateWindow(&quot;w32skin&quot;, &quot;       w32skin&quot;,
                      WS_OVERLAPPEDWINDOW,
                      100,100, iWidth,iHeight,
                      NULL, NULL, GetModuleHandle(NULL), NULL);
  return (hWnd?true:false);

}
</code></pre>
<p>Weiß jemand warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655552</guid><dc:creator><![CDATA[DieFrage]]></dc:creator><pubDate>Sat, 31 Jan 2009 15:10:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:21:51 GMT]]></title><description><![CDATA[<p>DieFrage schrieb:</p>
<blockquote>
<p>return (hWnd?true:false);</p>
</blockquote>
<p>Gib hier einfach return hWnd ein. Wenn CreateWindow erfolgreich war, hat hWnd ein gültiges Handle (&gt;0), sonst ist Hwnd=0, also false. Ansonsten kenne ich mich mit MakeWindow nicht aus, da ich diese Funktion nicht einsetze.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655623</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:25:37 GMT]]></title><description><![CDATA[<p>deine DialogProc ist fehlerhaft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655625</guid><dc:creator><![CDATA[ascda]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:25:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:25:55 GMT]]></title><description><![CDATA[<p>Ich bekomme weiterhin ein -1 zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655626</guid><dc:creator><![CDATA[DieFrage]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:25:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:29:11 GMT]]></title><description><![CDATA[<p>Ach ja,<br />
hWnd hat die ganze Zeit nur den Wert 0.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655629</guid><dc:creator><![CDATA[DieFrage]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:45:24 GMT]]></title><description><![CDATA[<p>wndWc.hCursor = LoadCursor(0, MAKEINTRESOURCE(IDC_ARROW));</p>
<p>sei froh, dass du überhaupt eine Antwort bekommst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655633</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:45:24 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 17:57:46 GMT]]></title><description><![CDATA[<p>Naja,<br />
das Problem besteht weiterhin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655638</guid><dc:creator><![CDATA[DieFrag]]></dc:creator><pubDate>Sat, 31 Jan 2009 17:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 18:26:41 GMT]]></title><description><![CDATA[<p>ascda schrieb:</p>
<blockquote>
<p>deine DialogProc ist fehlerhaft.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1655651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655651</guid><dc:creator><![CDATA[ascda]]></dc:creator><pubDate>Sat, 31 Jan 2009 18:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 18:29:44 GMT]]></title><description><![CDATA[<p>DieFrag schrieb:</p>
<blockquote>
<p>Naja,<br />
das Problem besteht weiterhin.</p>
</blockquote>
<p>Obwohl ich keinen Bock darauf habe jemanden zu antworten, der noch nicht einmal in der Lage ist einen Fehler, den er erhält anzugeben,</p>
<p>hier, das hier läuft fehlerlos.</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;iostream&gt;

HRESULT WINAPI DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
    return DefWindowProc(hwnd, uMsg, wParam, lParam);
}

bool MakeWindow(int iWidth, int iHeight)
{
  // our window class
  WNDCLASS wndWc;
  HWND hWnd;

  wndWc.style = CS_OWNDC;
  wndWc.lpfnWndProc = (WNDPROC) DialogProc;
  wndWc.cbClsExtra = 0;
  wndWc.cbWndExtra = 0;
  wndWc.hInstance = GetModuleHandle(NULL);
  wndWc.hIcon = NULL;
  wndWc.hCursor = LoadCursor(0, MAKEINTRESOURCE(IDC_ARROW));
  wndWc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  wndWc.lpszMenuName = NULL;
  wndWc.lpszClassName = &quot;w32skin&quot;;

  if (!RegisterClass(&amp;wndWc)) {
	  std::cout &lt;&lt;&quot;error reg&quot; &lt;&lt; std::endl;
      return false;
  }

  hWnd = CreateWindow(&quot;w32skin&quot;, &quot;       w32skin&quot;,
                      WS_OVERLAPPEDWINDOW | WS_VISIBLE,
                      100,100, iWidth,iHeight,
                      NULL, NULL, GetModuleHandle(NULL), NULL);
  return (hWnd?true:false);

}
</code></pre>
<p>tschau, auf nimmer wiedersehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655653</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Sat, 31 Jan 2009 18:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 18:42:20 GMT]]></title><description><![CDATA[<p>Ganz süß wieder diese infantile Polemik.</p>
<blockquote>
<p>Obwohl ich keinen Bock darauf habe jemanden zu antworten, der noch nicht einmal in der Lage ist einen Fehler, den er erhält anzugeben,</p>
</blockquote>
<p>Hiermit möchte ich zum ausdrück bringen, ich habe keine lust mit jemanden zu schreiben der des lesens nicht mächtig ist und dessen stilmittel überheblichkeit und affekthascherei sind.</p>
<p>Um auf auf gut deutsch zu sagen:<br />
Wenn du ein auf Obermakker machst, solltest du schauen wie lang dein Schwanz wirklich ist. Hör auf mich zu nerven mit deinen sinnfreien aussagen. Bei paar tausend regestrierten leuten brauch ich kein kleinen jungen der sich aufblassen muss.</p>
<p>Die gesagt, neben der erkenntnis, dass hWnd den wert 0 enthält, bekomme ich keine compilerfehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655656</guid><dc:creator><![CDATA[DieFehler]]></dc:creator><pubDate>Sat, 31 Jan 2009 18:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 20:37:59 GMT]]></title><description><![CDATA[<p>ascda schrieb:</p>
<blockquote>
<p>ascda schrieb:</p>
<blockquote>
<p>deine DialogProc ist fehlerhaft.</p>
</blockquote>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1655697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655697</guid><dc:creator><![CDATA[ascda]]></dc:creator><pubDate>Sat, 31 Jan 2009 20:37:59 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in Make Window on Sat, 31 Jan 2009 21:41:57 GMT]]></title><description><![CDATA[<p>Das wars. Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655718</guid><dc:creator><![CDATA[DieFrage]]></dc:creator><pubDate>Sat, 31 Jan 2009 21:41:57 GMT</pubDate></item></channel></rss>