<?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[Winapi createwindowex(...)]]></title><description><![CDATA[<pre><code class="language-cpp">if(!(hWnd = CreateWindowEx(dwExStyle,
		&quot;DWWWWW1&quot;,
		title,
		dwStyle |
		WS_CLIPSIBLINGS |
		WS_CLIPCHILDREN,
		0, 0,
		WindowRect.right-WindowRect.left,
		WindowRect.bottom-WindowRect.top,
		NULL,
		NULL,
		hInstance,
		NULL))) // hier krachts
	{
		KillD3DWindow();
		MessageBox(NULL, L&quot;naja&quot;, L&quot;Error.&quot;, MB_OK | MB_ICONINFORMATION);
	}
</code></pre>
<p>wieso krachts da beim letzten parameta?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204187/winapi-createwindowex</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 20:34:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204187.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jan 2008 22:42:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Winapi createwindowex(...) on Wed, 30 Jan 2008 22:42:43 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">if(!(hWnd = CreateWindowEx(dwExStyle,
		&quot;DWWWWW1&quot;,
		title,
		dwStyle |
		WS_CLIPSIBLINGS |
		WS_CLIPCHILDREN,
		0, 0,
		WindowRect.right-WindowRect.left,
		WindowRect.bottom-WindowRect.top,
		NULL,
		NULL,
		hInstance,
		NULL))) // hier krachts
	{
		KillD3DWindow();
		MessageBox(NULL, L&quot;naja&quot;, L&quot;Error.&quot;, MB_OK | MB_ICONINFORMATION);
	}
</code></pre>
<p>wieso krachts da beim letzten parameta?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446713</guid><dc:creator><![CDATA[mfggg]]></dc:creator><pubDate>Wed, 30 Jan 2008 22:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Wed, 30 Jan 2008 23:48:07 GMT]]></title><description><![CDATA[<blockquote>
<p>wieso krachts da beim letzten parameta?</p>
</blockquote>
<p>Der Compiler meint mit hoher Wahrscheinlichket die logische Zeile; und die geht eben von 1-13. Die MSDN-Bib sieht ausdrücklich die Mögl. vor, daß lpParam gleich NULL ist. Daran kann's also nicht liegen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446737</guid><dc:creator><![CDATA[bgdnoy]]></dc:creator><pubDate>Wed, 30 Jan 2008 23:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 00:19:59 GMT]]></title><description><![CDATA[<p>Definier' mal &quot;es Kracht&quot;!</p>
<p>greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446746</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 31 Jan 2008 00:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 09:33:42 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1446831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446831</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 31 Jan 2008 09:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 09:49:31 GMT]]></title><description><![CDATA[<p>Könnte es sein, daß es nur &quot;irgendwo&quot; in der Parameterliste kracht? Dann gibt manch ein Compiler nämlich nur das Ende der Liste aus.<br />
Da Du nämlich ein ChildWindow erstellst, würde ich vermuten daß hWndParent ( 9. Parameter) falsch angegeben ist. Außerdem hast Du bei dwStyle einfach &quot;dwStyle&quot; angegeben, das ist aber kein Style.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446838</guid><dc:creator><![CDATA[Elektronix]]></dc:creator><pubDate>Thu, 31 Jan 2008 09:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 15:53:25 GMT]]></title><description><![CDATA[<p>auszüge aus dem Code:</p>
<pre><code class="language-cpp">if(hDC &amp;&amp; !Release(hWnd, hDC))
	{
		MessageBox(NULL, L&quot;Release DC failed.&quot;, L&quot;Shutdown Error&quot;, MB_OK | MB_ICONINFORMATION);
		hDC = NULL;
	}
</code></pre>
<p><strong>error C3861: &quot;Release&quot;: Bezeichner wurde nicht gefunden.</strong></p>
<pre><code class="language-cpp">// Create a Window

	if(!(hWnd = CreateWindowEx(dwExStyle,
		&quot;Direct 3D&quot;,
		title,
		dwStyle |
		WS_CLIPSIBLINGS |
		WS_CLIPCHILDREN,
		0, 0,
		WindowRect.right-WindowRect.left,
		WindowRect.bottom-WindowRect.top,
		NULL,
		NULL,
		hInstance,
		NULL)))
	{
		KillD3DWindow();
		MessageBox(NULL, L&quot;Fehler beim Erstellen eines Fensters&quot;, L&quot;Error.&quot;, MB_OK | MB_ICONINFORMATION);
	}
</code></pre>
<p><strong>error C2664: 'CreateWindowExW': Konvertierung des Parameters 2 von 'const char [10]' in 'LPCWSTR' nicht möglich</strong></p>
<p>Am Ende der WinMain:</p>
<pre><code class="language-cpp">return (msg.wParam);
</code></pre>
<p><strong>warning C4244: 'return': Konvertierung von 'WPARAM' in 'int', möglicher Datenverlust</strong></p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447107</guid><dc:creator><![CDATA[mfgg]]></dc:creator><pubDate>Thu, 31 Jan 2008 15:53:25 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 15:56:03 GMT]]></title><description><![CDATA[<p>ok das mit<br />
**<br />
error C2664: 'CreateWindowExW': Konvertierung des Parameters 2 von 'const char [10]' in 'LPCWSTR' nicht möglich**</p>
<p>hab ich behoben.</p>
<p>Mit release() das problem:</p>
<pre><code class="language-cpp">...

HDC hDC = 0;
HWND hWnd = 0;
..

if(hDC &amp;&amp; !Release(hWnd, hDC))
	{
		MessageBox(NULL, L&quot;Release DC failed.&quot;, L&quot;Shutdown Error&quot;, MB_OK | MB_ICONINFORMATION);
		hDC = NULL;
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1447110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447110</guid><dc:creator><![CDATA[mfgg]]></dc:creator><pubDate>Thu, 31 Jan 2008 15:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 18:21:12 GMT]]></title><description><![CDATA[<p>kann mir jemand bitte helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447211</guid><dc:creator><![CDATA[mfgg]]></dc:creator><pubDate>Thu, 31 Jan 2008 18:21:12 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 19:27:22 GMT]]></title><description><![CDATA[<p>was könnte da nicht stimmen?</p>
<p>Release ist doch eine Funktion, die sich im Windowsheader befindet?!</p>
<pre><code class="language-cpp">if(hDC &amp;&amp; !Release(hWnd, hDC))
    {
        MessageBox(NULL, L&quot;Release DC failed.&quot;, L&quot;Shutdown Error&quot;, MB_OK | MB_ICONINFORMATION);
        hDC = NULL;
    }
</code></pre>
<p><strong>error C3861: &quot;Release&quot;: Bezeichner wurde nicht gefunden.</strong></p>
<p>naja mehr weiß ich nun auch nicht mehr <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/1447248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447248</guid><dc:creator><![CDATA[mfgg]]></dc:creator><pubDate>Thu, 31 Jan 2008 19:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 19:31:21 GMT]]></title><description><![CDATA[<p>Release<strong>DC</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447250</guid><dc:creator><![CDATA[mfggg]]></dc:creator><pubDate>Thu, 31 Jan 2008 19:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Winapi createwindowex(...) on Thu, 31 Jan 2008 19:34:17 GMT]]></title><description><![CDATA[<p>Ich habe den Dev-C++. Und der sagt mir bei der letzten Zeile auch immer dass da was nciht ganz stimmmt aber ich kann trotzdem kompilieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447251</guid><dc:creator><![CDATA[tweenki]]></dc:creator><pubDate>Thu, 31 Jan 2008 19:34:17 GMT</pubDate></item></channel></rss>