<?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[DLL &amp;amp; DLL_Prozess_Attach]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine DLL (incl. DllMain() )geschrieben. Und die funktioniert auch.<br />
Explizite Bindung (LoadLibrary etc.).</p>
<p>Im Prinzip brauch ich die Konstanten DLL_PROZESS_ATTACH/DETACH nicht. Welchen Unsinn kann man denn damit machen ? Was kann man vor das break setzen ?</p>
<p>switch (reason)<br />
{<br />
case DLL_PROCESS_ATTACH:<br />
break;</p>
<p>case DLL_PROCESS_DETACH:<br />
break;</p>
<p>case DLL_THREAD_ATTACH:<br />
break;</p>
<p>case DLL_THREAD_DETACH:<br />
break;<br />
}</p>
<p>Kleines Beispiel wäre schön.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109444/dll-amp-dll_prozess_attach</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 15:14:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109444.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 May 2005 09:11:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 09:11:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine DLL (incl. DllMain() )geschrieben. Und die funktioniert auch.<br />
Explizite Bindung (LoadLibrary etc.).</p>
<p>Im Prinzip brauch ich die Konstanten DLL_PROZESS_ATTACH/DETACH nicht. Welchen Unsinn kann man denn damit machen ? Was kann man vor das break setzen ?</p>
<p>switch (reason)<br />
{<br />
case DLL_PROCESS_ATTACH:<br />
break;</p>
<p>case DLL_PROCESS_DETACH:<br />
break;</p>
<p>case DLL_THREAD_ATTACH:<br />
break;</p>
<p>case DLL_THREAD_DETACH:<br />
break;<br />
}</p>
<p>Kleines Beispiel wäre schön.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785425</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Tue, 10 May 2005 09:11:59 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 09:39:15 GMT]]></title><description><![CDATA[<p>Ich schüttel jetzt mal nur mit dem Kopf. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
Für's nächste Mal nimm Google oder gleich <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecoreos5/html/wce50lrfDllMain.asp" rel="nofollow">&quot;die Quelle&quot;</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785436</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785436</guid><dc:creator><![CDATA[Maffe001]]></dc:creator><pubDate>Tue, 10 May 2005 09:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 10:37:15 GMT]]></title><description><![CDATA[<p>//</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785508</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Tue, 10 May 2005 10:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 10:42:41 GMT]]></title><description><![CDATA[<p>&quot;Wenn Sie für Ihre DLL keine DllMain-Funktion schreiben, wir eine Minimalversion dieser Funktion aus der Laufzeitbibliothek verwendet.&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785512</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Tue, 10 May 2005 10:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 10:48:06 GMT]]></title><description><![CDATA[<p>Ups, hab vorhin falsch verlinkt. Hier ist der allgemeine <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dllmain.asp" rel="nofollow">Link</a>. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>[Edit] Wo hast denn das Zitat her? [/Edit]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785519</guid><dc:creator><![CDATA[Maffe001]]></dc:creator><pubDate>Tue, 10 May 2005 10:48:06 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Tue, 10 May 2005 11:07:30 GMT]]></title><description><![CDATA[<p>...glaube Visual C++ , Kap22 S. 497</p>
<p>Was machen denn die Profis mit dem Zeug ?</p>
<p>Bei mir steht's völlig sinnlos rum. Ginge ja auch ohne.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/785532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/785532</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Tue, 10 May 2005 11:07:30 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Wed, 11 May 2005 07:17:00 GMT]]></title><description><![CDATA[<p>... das ich mich nochmal melde</p>
<p>Schreibt denn keiner DLL's und kann mir sagen, was sinnvollerweise unter<br />
....<br />
case DLL_PROCESS_ATTACH:<br />
// Beispiel<br />
break;<br />
...</p>
<p>reingepackt wird</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786263</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Wed, 11 May 2005 07:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Wed, 11 May 2005 07:24:48 GMT]]></title><description><![CDATA[<p>Also ich hab bis jetzt schon ein paar geschrieben, aber die DllMain liegt bei mir immer brach. Hab's halt noch nicht gebrauchen können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786273</guid><dc:creator><![CDATA[Maffe001]]></dc:creator><pubDate>Wed, 11 May 2005 07:24:48 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Wed, 11 May 2005 07:34:15 GMT]]></title><description><![CDATA[<p>FdwReason schrieb:</p>
<blockquote>
<p>Schreibt denn keiner DLL's und kann mir sagen, was sinnvollerweise unter<br />
....<br />
case DLL_PROCESS_ATTACH:<br />
// Beispiel<br />
break;<br />
...</p>
<p>reingepackt wird</p>
</blockquote>
<p>Die Frage ist unsinnig. Das ist in etwas so, als ob du fragen würdest, was sinnvollerweise in einen Backofen gepackt wird. Backpapier, oder Kuchenformen. Ein Braten. Jemand bewahrt vielleicht Töpfe im Backofen auf, wenn er aus ist.</p>
<p>Worauf ich hinaus will: Was du reintust, kommt darauf an, was du gerade da drin brauchst.</p>
<p>Wenn du weißt, wann DllMain aufgerufen wird, dann ist dir auch klar, dass dort dann der Code reingehört, der zu diesen speziellen Zeitpunkten ausgeführt werden soll. Eine allgemeingültige Antwort darauf gibt es nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786281</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 11 May 2005 07:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Wed, 11 May 2005 14:18:59 GMT]]></title><description><![CDATA[<p>da kannste zum beispiel das Instancen-Handle der DLL für Verwendung in anderen Funktionen speichern aber der über mir hat recht du kannst auch fragen was man normalerweise für icons aufm desktop hat</p>
]]></description><link>https://www.c-plusplus.net/forum/post/786639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786639</guid><dc:creator><![CDATA[Lesco]]></dc:creator><pubDate>Wed, 11 May 2005 14:18:59 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Wed, 11 May 2005 14:29:44 GMT]]></title><description><![CDATA[<p>Lesco schrieb:</p>
<blockquote>
<p>da kannste zum beispiel das Instancen-Handle der DLL für Verwendung in anderen Funktionen speichern</p>
</blockquote>
<p>kann ich aber auch mit</p>
<pre><code class="language-cpp">GetModuleHandle(NULL);
</code></pre>
<p>anfragen <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="😉"
    /></p>
<p>Lesco schrieb:</p>
<blockquote>
<p>aber der über mir hat recht du kannst auch fragen was man normalerweise für icons aufm desktop hat</p>
</blockquote>
<p>guter vergleich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/786647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/786647</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 11 May 2005 14:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to DLL &amp;amp; DLL_Prozess_Attach on Thu, 12 May 2005 07:00:55 GMT]]></title><description><![CDATA[<p>Also ganz normal verwenden. Wie bei jedem anderen Programm auch.</p>
<p>In meinen Fall heißt das, ich kann auf die DllMain()-Funktion verzichten. Brauch sie nicht einbinden.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/787085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/787085</guid><dc:creator><![CDATA[FdwReason]]></dc:creator><pubDate>Thu, 12 May 2005 07:00:55 GMT</pubDate></item></channel></rss>