<?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[Ohne WinMain]]></title><description><![CDATA[<p>Hallo Leute,<br />
folgende Frage: Wie kann ich ein Fenster mit CreateWindow erstellen, ohne ein WinMain zu haben, bzw. was für einen Parameter muss ich als HINSTANCE übergeben?<br />
Ich komm einfach nicht weiter.<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177179/ohne-winmain</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 05:18:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177179.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Mar 2007 19:13:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ohne WinMain on Wed, 28 Mar 2007 19:13:14 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
folgende Frage: Wie kann ich ein Fenster mit CreateWindow erstellen, ohne ein WinMain zu haben, bzw. was für einen Parameter muss ich als HINSTANCE übergeben?<br />
Ich komm einfach nicht weiter.<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254947</guid><dc:creator><![CDATA[Krampf]]></dc:creator><pubDate>Wed, 28 Mar 2007 19:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Wed, 28 Mar 2007 19:28:11 GMT]]></title><description><![CDATA[<p>GetModuleHandle sollte gehen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254954</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 28 Mar 2007 19:28:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Wed, 28 Mar 2007 20:10:41 GMT]]></title><description><![CDATA[<p>Ok,danke, es geht, jetzt aber ein anderes Problem.<br />
Wenn ich es linke (ist ein OGL-Projekt und ich denke es handelt sich um einen Linkefehler), linke ich die<br />
user32, kernel32, gdi32, opengl32 und die glu32 mit dazu.<br />
Das Fenster, dass dann erstellt werden soll, wird aber nicht angezeigt:</p>
<pre><code class="language-cpp">WNDCLASS wc;

wc.style = CS_OWNDC;
wc.lpfnWndProc = Proc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = Inst;
wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor (NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH) GetStockObject (BLACK_BRUSH);
wc.lpszMenuName = NULL;
wc.lpszClassName = &quot;GLSample&quot;;
RegisterClass (&amp;wc);

Window = CreateWindow (
      &quot;Klassenname&quot;, &quot;Titel&quot;,
      WS_POPUPWINDOW | WS_VISIBLE,
      0, 0,Width,Height,
      NULL, NULL, GetModuleHandle(NULL)/*Inst*/, NULL);

    ShowWindow(Window, SW_SHOW);
</code></pre>
<p>Weiß einer wo der Fehler liegt?<br />
Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254978</guid><dc:creator><![CDATA[Krampf]]></dc:creator><pubDate>Wed, 28 Mar 2007 20:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Wed, 28 Mar 2007 20:14:30 GMT]]></title><description><![CDATA[<p>Ja ist logisch ... &quot;GLSample&quot; und &quot;Klassenname&quot; sieht für mich nicht gleich aus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> Muss es aber ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254983</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 28 Mar 2007 20:14:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Thu, 29 Mar 2007 13:35:58 GMT]]></title><description><![CDATA[<p>Ok, ja, im unteren habe ich GLSample durch Klassenname nur ersetzt, um es verständlicher zu machen, und oben hab ichs vergessen.<br />
Wisst ihr wo der Fehler sein könnte (evtl. Linkeroptionen)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255353</guid><dc:creator><![CDATA[Krampf]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:35:58 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Thu, 29 Mar 2007 13:49:02 GMT]]></title><description><![CDATA[<p>Deine WindowProc?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255373</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ohne WinMain on Fri, 30 Mar 2007 17:52:23 GMT]]></title><description><![CDATA[<p>Danke, das wars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256218</guid><dc:creator><![CDATA[Entkrampft]]></dc:creator><pubDate>Fri, 30 Mar 2007 17:52:23 GMT</pubDate></item></channel></rss>