<?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[Problem bei der Fenstererstellung]]></title><description><![CDATA[<p>kann mir jemand verraten, warum</p>
<pre><code class="language-cpp">WNDCLASSEX wcex;
  memset( &amp;wcex, 0, sizeof( wcex ) );
  wcex.cbSize = sizeof( wcex );
  wcex.lpszClassName = &quot;gLSWindowClass&quot;;
  wcex.lpfnWndProc = WindowProc;
  wcex.style = CS_HREDRAW | CS_VREDRAW;

  if( !RegisterClassEx( &amp;wcex ) ) {
    LPVOID lpMsgBuf;
    FormatMessage( 
      FORMAT_MESSAGE_ALLOCATE_BUFFER | 
      FORMAT_MESSAGE_FROM_SYSTEM | 
      FORMAT_MESSAGE_IGNORE_INSERTS,
      NULL,
      GetLastError(),
      MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
      (LPTSTR) &amp;lpMsgBuf,
      0,
      NULL 
    );
    MessageBox( NULL, (LPCTSTR)lpMsgBuf, &quot;Error while creating window class:&quot;, MB_OK | MB_ICONINFORMATION );
    LocalFree( lpMsgBuf );
    return 0;
  }

  HWND hWindow = CreateWindowEx( 0, &quot;gLSWindowClass&quot;, &quot;gLS&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE,
    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);
</code></pre>
<p>nicht funktionieren sollte?</p>
<p>Die Registrierung der Fensterklasse funktioniert wie erwartet, aber nach CreateWindowEx bleibt hWindow == NULL und GetLastError() liefert<br />
&quot;Das System kann die angegebene Datei nicht finden.&quot;. Kann doch garnicht sein, oder?</p>
<p>thxia : neox86</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/139350/problem-bei-der-fenstererstellung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 06:34:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/139350.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Mar 2006 22:17:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem bei der Fenstererstellung on Sun, 05 Mar 2006 22:17:14 GMT]]></title><description><![CDATA[<p>kann mir jemand verraten, warum</p>
<pre><code class="language-cpp">WNDCLASSEX wcex;
  memset( &amp;wcex, 0, sizeof( wcex ) );
  wcex.cbSize = sizeof( wcex );
  wcex.lpszClassName = &quot;gLSWindowClass&quot;;
  wcex.lpfnWndProc = WindowProc;
  wcex.style = CS_HREDRAW | CS_VREDRAW;

  if( !RegisterClassEx( &amp;wcex ) ) {
    LPVOID lpMsgBuf;
    FormatMessage( 
      FORMAT_MESSAGE_ALLOCATE_BUFFER | 
      FORMAT_MESSAGE_FROM_SYSTEM | 
      FORMAT_MESSAGE_IGNORE_INSERTS,
      NULL,
      GetLastError(),
      MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
      (LPTSTR) &amp;lpMsgBuf,
      0,
      NULL 
    );
    MessageBox( NULL, (LPCTSTR)lpMsgBuf, &quot;Error while creating window class:&quot;, MB_OK | MB_ICONINFORMATION );
    LocalFree( lpMsgBuf );
    return 0;
  }

  HWND hWindow = CreateWindowEx( 0, &quot;gLSWindowClass&quot;, &quot;gLS&quot;, WS_OVERLAPPEDWINDOW | WS_VISIBLE,
    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);
</code></pre>
<p>nicht funktionieren sollte?</p>
<p>Die Registrierung der Fensterklasse funktioniert wie erwartet, aber nach CreateWindowEx bleibt hWindow == NULL und GetLastError() liefert<br />
&quot;Das System kann die angegebene Datei nicht finden.&quot;. Kann doch garnicht sein, oder?</p>
<p>thxia : neox86</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009331</guid><dc:creator><![CDATA[neox86]]></dc:creator><pubDate>Sun, 05 Mar 2006 22:17:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Fenstererstellung on Sun, 05 Mar 2006 23:36:09 GMT]]></title><description><![CDATA[<p>Oh, shit!</p>
<p>Wenn ich auf WM_NCCREATE false zurückgebe kann das nix werden...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009347</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009347</guid><dc:creator><![CDATA[neox86]]></dc:creator><pubDate>Sun, 05 Mar 2006 23:36:09 GMT</pubDate></item></channel></rss>