<?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[Kleine Frage zu HINSTANCE.]]></title><description><![CDATA[<p>Hallo,<br />
Ich wollte mich nur einmal erkundigen, ob es grundsätzlich nötig ist, beim Erstellen eines Childs, ein Handle der Instance zu übergeben?<br />
Könnte man die auch anders bewerkstelligen, oder muss ich jedes mal einen extra Parameter in einer Funktion dafür angeben?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199890/kleine-frage-zu-hinstance</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 21:58:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199890.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Dec 2007 09:35:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 09:35:51 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich wollte mich nur einmal erkundigen, ob es grundsätzlich nötig ist, beim Erstellen eines Childs, ein Handle der Instance zu übergeben?<br />
Könnte man die auch anders bewerkstelligen, oder muss ich jedes mal einen extra Parameter in einer Funktion dafür angeben?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416912</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sat, 08 Dec 2007 09:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 11:03:01 GMT]]></title><description><![CDATA[<p>In der MSDN steht unter CreateWindow, dass der HINSTANCE Parameter nur für Win95 benötigt wird, ansonsten wird er sowieso ignoriert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416947</guid><dc:creator><![CDATA[ich_du_er]]></dc:creator><pubDate>Sat, 08 Dec 2007 11:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 12:20:53 GMT]]></title><description><![CDATA[<p>ok danke, eine Frage haette ich da vieleicht noch und zwar habe ich es schon öffter gesehen das bei diesem Parameter GetModule...( 0 ) stand, wozu ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416979</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sat, 08 Dec 2007 12:20:53 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 12:22:03 GMT]]></title><description><![CDATA[<p>GetModule(0) liefert das Instanzhandle der aktuellen Anwendung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416981</guid><dc:creator><![CDATA[sri]]></dc:creator><pubDate>Sat, 08 Dec 2007 12:22:03 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 13:54:09 GMT]]></title><description><![CDATA[<p>also kann ich ruhig GetModule( o ) in den Parameter schreibe?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417013</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417013</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sat, 08 Dec 2007 13:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 16:05:43 GMT]]></title><description><![CDATA[<p>1. Wo steht in welcher Doku, dass man hInstance nicht mehr angeben müsste? Das ist Quatsch.<br />
2. GetModuleHandle(NULL) fuktioniert nur, wenn es sich um eine EXE handelt und die Klasse für dieses Modul registriert wurde. Grundsätzlich kann ich GetModuleHandle als Ersatz empfehlen, sobald man den Code in eine DLL auslagert geht es schief. War neulich erst ein Posting in dieser Gruppe.<br />
3. Man sollte sich für hInstnace seines Modules eine global Variable reservieren. Frameworks wie die MFC stellen dafür spezielle Zugriffsfunktionen zur Verfügung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417101</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 08 Dec 2007 16:05:43 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sat, 08 Dec 2007 16:21:22 GMT]]></title><description><![CDATA[<p>Ich habe vor das in eine DLL auszulagern... wie kann ich das dann am besten tun?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417110</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sat, 08 Dec 2007 16:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Frage zu HINSTANCE. on Sun, 09 Dec 2007 14:32:00 GMT]]></title><description><![CDATA[<p>T0bi schrieb:</p>
<blockquote>
<p>Ich habe vor das in eine DLL auszulagern... wie kann ich das dann am besten tun?</p>
</blockquote>
<p>Darauf achten, die richtige hInstance zu verwenden, die die Du in DllMain mitbekomst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1417587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1417587</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 09 Dec 2007 14:32:00 GMT</pubDate></item></channel></rss>