<?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[Einlegen von CD erkennen]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich mein Programm feststellen lassen, dass eine neue CD eingelegt wurde und den zugehörigen Laufwerksbuchstaben erhalten?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193702/einlegen-von-cd-erkennen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 05:36:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193702.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Sep 2007 18:17:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Einlegen von CD erkennen on Fri, 28 Sep 2007 18:17:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich mein Programm feststellen lassen, dass eine neue CD eingelegt wurde und den zugehörigen Laufwerksbuchstaben erhalten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374587</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Fri, 28 Sep 2007 18:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Fri, 05 Oct 2007 16:33:29 GMT]]></title><description><![CDATA[<p>Mit GetDriveType könntest du feststellen welche Laufwerksbuchstaben<br />
zu CD-Laufwerken gehören.</p>
<p>Dann startest du für jedes CD-Laufwerk eine eigen Thread,<br />
und überwachst imt GetVolumeInformation ob eine CD eingelegt wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1378753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1378753</guid><dc:creator><![CDATA[AZ]]></dc:creator><pubDate>Fri, 05 Oct 2007 16:33:29 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Sat, 06 Oct 2007 16:11:33 GMT]]></title><description><![CDATA[<p>Die Lösung sollte WM_DEVICECHANGE sein...<br />
Ich poste ein Beispiel, sofern ich die Tage dazu komme!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379251</guid><dc:creator><![CDATA[Shell32]]></dc:creator><pubDate>Sat, 06 Oct 2007 16:11:33 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Sat, 06 Oct 2007 16:48:21 GMT]]></title><description><![CDATA[<p>Siehe:<br />
How to receive notification of CD-ROM insertion or removal<br />
<a href="http://support.microsoft.com/kb/163503/en-us" rel="nofollow">http://support.microsoft.com/kb/163503/en-us</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379276</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 06 Oct 2007 16:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Sun, 07 Oct 2007 13:50:49 GMT]]></title><description><![CDATA[<p>Kann mir jemand verraten welche Funktion diese Aufgabe in MFC<br />
für den Dialog abhandelt? PreTranslate oder DefWindowProc?</p>
<p>Also anstelle von</p>
<pre><code class="language-cpp">Main_OnDeviceChange (HWND hwnd, WPARAM wParam, LPARAM lParam)
</code></pre>
<p>Ich tippe mal auf DefWindowProc, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379710</guid><dc:creator><![CDATA[Tukki]]></dc:creator><pubDate>Sun, 07 Oct 2007 13:50:49 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Sun, 07 Oct 2007 14:12:50 GMT]]></title><description><![CDATA[<p>Es geht um die Nachricht WM_DEVICECHANGE, diese wird mit ON_MESSAGE in die Messagemap eingetragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1379725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1379725</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 07 Oct 2007 14:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Sun, 07 Oct 2007 19:29:09 GMT]]></title><description><![CDATA[<p>Und wie geht es dann weiter?</p>
<pre><code class="language-cpp">ON_MESSAGE(WM_DEVICECHANGE,myfunc)
</code></pre>
<p>In myfunc muss ich dann doch irgendwie darauf reagieren.<br />
Ich dachte es geht dabei um eine bereits dafür vorgesehene<br />
Funktion, die man dahingehend überschreibt?</p>
<p>Wie würde ich dann myfunc anlegen? Doch so:</p>
<pre><code class="language-cpp">LRESULT TesterDlg::myfunc(WPARAM wParam, LPARAM lParam);
</code></pre>
<p>Die Funktion myfunc wird aber scheinbar nie gerufen?!<br />
Die MessageBox darin wird nie angezeigt.</p>
<p><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/1380039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1380039</guid><dc:creator><![CDATA[Tukki]]></dc:creator><pubDate>Sun, 07 Oct 2007 19:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to Einlegen von CD erkennen on Mon, 08 Oct 2007 06:29:33 GMT]]></title><description><![CDATA[<p>Dann kommt WM_DEVICECHANGE nicht an.<br />
Ist das ein Top-Level Fenster?<br />
Hast Du mal mit Spy++ kontrolliert ob diese nachricht überhaupt irgendwo ankommt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1380207</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1380207</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 08 Oct 2007 06:29:33 GMT</pubDate></item></channel></rss>