<?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[WndProc in einer DLL abfangen]]></title><description><![CDATA[<p>Hallo,<br />
ich muss eine Windows Nachricht in einer DLL abfangen. Es geht um ein WM_DEVICECHANGE (USB-Device) - kann ich das in der DLL auch ohne ein Fenster zu haben??<br />
Mit einen normalen Windowsprogramm läufts so weit.</p>
<p>packmers mal wieder... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/89661/wndproc-in-einer-dll-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 21:46:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/89661.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Oct 2004 16:22:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WndProc in einer DLL abfangen on Thu, 21 Oct 2004 16:22:32 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich muss eine Windows Nachricht in einer DLL abfangen. Es geht um ein WM_DEVICECHANGE (USB-Device) - kann ich das in der DLL auch ohne ein Fenster zu haben??<br />
Mit einen normalen Windowsprogramm läufts so weit.</p>
<p>packmers mal wieder... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/634319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/634319</guid><dc:creator><![CDATA[packmers]]></dc:creator><pubDate>Thu, 21 Oct 2004 16:22:32 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc in einer DLL abfangen on Thu, 21 Oct 2004 18:39:30 GMT]]></title><description><![CDATA[<p>Du brachst auf jeden Fall ein Fenster.<br />
Wenn du weißt, daß die Hauptapplikation auch eine GUI hat, dann kannst du einfach ein Fenster erzeugen.<br />
Wenn deine DLL auch aus einem Programm ohne GUI benutzt werden soll, dann kannst du einen neuen Thread starten, der dann ein Fenster erzeugt, um Nachrichten empfangen zu können.<br />
Natürlich wird das alles durch den zweiten Thread viel umständlicher und fehleranfälliger; ich würde also davon abraten, wenn möglich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/634447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/634447</guid><dc:creator><![CDATA[Raving Tux]]></dc:creator><pubDate>Thu, 21 Oct 2004 18:39:30 GMT</pubDate></item><item><title><![CDATA[Reply to WndProc in einer DLL abfangen on Tue, 26 Oct 2004 12:35:26 GMT]]></title><description><![CDATA[<p>Raving Tux schrieb:</p>
<blockquote>
<p>Du brachst auf jeden Fall ein Fenster.</p>
</blockquote>
<p>Stimmt nicht ganz - mit SetWindowsHookEx(...) kann man Win-Nachrichten mitlesen und auch auswerten. Ich habs auch schon am laufen, aber leider nicht fehlerfrei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637855</guid><dc:creator><![CDATA[packmers]]></dc:creator><pubDate>Tue, 26 Oct 2004 12:35:26 GMT</pubDate></item></channel></rss>