<?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[Zustand&#x2F;Position vom CD-Laufwerk ermitteln (ausgefahren oder eingefahren)]]></title><description><![CDATA[<p>Hallo, ich hab hier ein simples Programm:</p>
<p>#include &lt;cstdlib&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;mmsystem.h&gt;<br />
using namespace std;<br />
int i;</p>
<pre><code>int main()
{

    while(1)
    {

        cout &lt;&lt; &quot;[1] Laufwerk oeffnen&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;[2] Laufwerk schliessen&quot; &lt;&lt; endl &lt;&lt; endl;

        cin &gt;&gt;  i;
        system(&quot;cls&quot;);

        if(i==1)
        {
            mciSendString(&quot;set cdaudio door open&quot;,0,0,0);

        }

        else if(i==2)
        {
            mciSendString(&quot;set cdaudio door closed&quot;,0,0,0);

        }

        else
        {
        }
    }

}
</code></pre>
<p>Nun möchte ich aber erstmal wissen in welcher Position das Laufwerk gerade befindet bevor man eine Auswahl treffen kann.</p>
<p>Danke schonmal im Voraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/334886/zustand-position-vom-cd-laufwerk-ermitteln-ausgefahren-oder-eingefahren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 01:15:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/334886.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Oct 2015 13:50:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zustand&#x2F;Position vom CD-Laufwerk ermitteln (ausgefahren oder eingefahren) on Sun, 18 Oct 2015 14:03:18 GMT]]></title><description><![CDATA[<p>Hallo, ich hab hier ein simples Programm:</p>
<p>#include &lt;cstdlib&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;mmsystem.h&gt;<br />
using namespace std;<br />
int i;</p>
<pre><code>int main()
{

    while(1)
    {

        cout &lt;&lt; &quot;[1] Laufwerk oeffnen&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;[2] Laufwerk schliessen&quot; &lt;&lt; endl &lt;&lt; endl;

        cin &gt;&gt;  i;
        system(&quot;cls&quot;);

        if(i==1)
        {
            mciSendString(&quot;set cdaudio door open&quot;,0,0,0);

        }

        else if(i==2)
        {
            mciSendString(&quot;set cdaudio door closed&quot;,0,0,0);

        }

        else
        {
        }
    }

}
</code></pre>
<p>Nun möchte ich aber erstmal wissen in welcher Position das Laufwerk gerade befindet bevor man eine Auswahl treffen kann.</p>
<p>Danke schonmal im Voraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2471495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2471495</guid><dc:creator><![CDATA[kRYTEX]]></dc:creator><pubDate>Sun, 18 Oct 2015 14:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to Zustand&#x2F;Position vom CD-Laufwerk ermitteln (ausgefahren oder eingefahren) on Sun, 18 Oct 2015 14:23:29 GMT]]></title><description><![CDATA[<p>Mit diesem FAQ Eintrag kannst du schonmal rausfinden ob sich was ändert (ein / ausfahren)</p>
<p><a href="https://www.c-plusplus.net/forum/39198">https://www.c-plusplus.net/forum/39198</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2471501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2471501</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Sun, 18 Oct 2015 14:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to Zustand&#x2F;Position vom CD-Laufwerk ermitteln (ausgefahren oder eingefahren) on Tue, 27 Oct 2015 14:09:11 GMT]]></title><description><![CDATA[<p>Vielleicht hilft dir <a href="http://www.technical-recipes.com/2014/reading-the-status-of-dvd-drives-in-c/" rel="nofollow">das hier</a> weiter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472914</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Tue, 27 Oct 2015 14:09:11 GMT</pubDate></item></channel></rss>