<?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[CD Laufwerk rausfahren]]></title><description><![CDATA[<p>Hallo,<br />
Ich weiß das ist keine leichte Frage aber ich stelle sie trotzdem.<br />
Wie fährt man ein optisches Laufwerk (CD,DVD) raus und wieder rein?<br />
Welche Hather benötige ich?<br />
Mein Betriebssystem ist MS Windows Professional. Ich arbeite mit dem Compiler MS Visual C++ 6.0 .</p>
<p>Für eine Antwort wäre ich sehr dankbar.<br />
mfg Xclear</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/135009/cd-laufwerk-rausfahren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 22:00:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135009.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Jan 2006 11:10:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 11:10:11 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich weiß das ist keine leichte Frage aber ich stelle sie trotzdem.<br />
Wie fährt man ein optisches Laufwerk (CD,DVD) raus und wieder rein?<br />
Welche Hather benötige ich?<br />
Mein Betriebssystem ist MS Windows Professional. Ich arbeite mit dem Compiler MS Visual C++ 6.0 .</p>
<p>Für eine Antwort wäre ich sehr dankbar.<br />
mfg Xclear</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980853</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980853</guid><dc:creator><![CDATA[Xclear]]></dc:creator><pubDate>Mon, 30 Jan 2006 11:10:11 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 11:22:09 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Dafür gab's bereits einen Beitrag in den <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39397.html" rel="nofollow">FAQ</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980865</guid><dc:creator><![CDATA[luxx]]></dc:creator><pubDate>Mon, 30 Jan 2006 11:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 12:16:22 GMT]]></title><description><![CDATA[<p>In dem Beispiel steht</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
</code></pre>
<p>.<br />
Die Gänsefüßchen stehen ja dafür das sich die Datei im Projektverzeichniss befinden soll. Ich hab dan erstmal in Verzeichniss von MS Visual Studio nach der Datei gesucht und habe dan auch 5 Dateien mit dem Namen &quot;stdafx.h&quot; gefunden , die aber alle einen anderen Inhalt haben. Aus reiner Rutine habe ich erstmal Eine davon probiert und ins Projektverzeichnis gepackt und schon war der der fatal error (Include-Datei kann nicht geoeffnet werden: 'stdafx.h': No such file or directory) der immer beim Compilieren auftrat weg.<br />
Aber leider kommen jetzt beim Linken diese Fehler</p>
<pre><code>CD.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__mciSendStringA@16
libcd.lib(crt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _main
Debug/CD.exe : fatal error LNK1120: 2 unaufgeloeste externe Verweise
</code></pre>
<p>Woran liegt das ,und wie kan ich das beheben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980920</guid><dc:creator><![CDATA[Xclear]]></dc:creator><pubDate>Mon, 30 Jan 2006 12:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 12:26:16 GMT]]></title><description><![CDATA[<p>du musst erst einmal ein richtiges projekt erstellen und den code dann dort reinkopieren. ich hab mir das aus der faq nicht durchgelesen, aber denke nicht das du alles so gemacht hast wie dort beschrieben. und bitte bevor du den leuten einfach immer wieder das laufwerk aufmachst, denk darüber nach ob das sinnvoll ist und ob das auch jeder möchte, aber mich würde es furchtbar stören!</p>
<p>&quot;stdafx.h&quot; enthält vorkompilierte header, du musst sie nicht verwenden, wenn du nicht möchtest, aber erhöht die geschwindigkeit beim compilieren um einiges!</p>
<p>und bitte lern dich mal bisschen besser in MS VC++ ein, danke <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>
<p>MfG RadiatioN</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980930</guid><dc:creator><![CDATA[Radiation2K5]]></dc:creator><pubDate>Mon, 30 Jan 2006 12:26:16 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 12:59:26 GMT]]></title><description><![CDATA[<p>Der Beitrag in der FAQ sollte aber dringend geändert / ergänzt werden... der dort beschriebene Weg ist nämlich miserabel! Welches CD-Laufwerk öffnet er denn (ich habe hier 3)...</p>
<p>IMHO korrekt ist:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;winioctl.h&gt;
#include &lt;tchar.h&gt;
#include &lt;stdio.h&gt;

int _tmain()
{
  DWORD dwBytes;
  HANDLE hCdRom = CreateFile(_T(&quot;\\\\.\\F:&quot;), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
  if (hCdRom == INVALID_HANDLE_VALUE)
  {
    _tprintf(_T(&quot;Error: %x&quot;), GetLastError());
    return 1;
  }

  // Open the door:
  DeviceIoControl(hCdRom, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &amp;dwBytes, NULL);

  // Close the door:
  DeviceIoControl(hCdRom, IOCTL_STORAGE_LOAD_MEDIA, NULL, 0, NULL, 0, &amp;dwBytes, NULL);

  CloseHandle(hCdRom);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/980957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980957</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 30 Jan 2006 12:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 12:58:10 GMT]]></title><description><![CDATA[<p>Bei mir kommen bei dem immer die Fehler</p>
<pre><code>error C2065: 'IOCTL_STORAGE_EJECT_MEDIA' : nichtdeklarierter Bezeichner
error C2065: 'IOCTL_STORAGE_LOAD_MEDIA' : nichtdeklarierter Bezeichner
</code></pre>
<p>Fehlt vieleicht irgendein Hather?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980973</guid><dc:creator><![CDATA[Xclear]]></dc:creator><pubDate>Mon, 30 Jan 2006 12:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 12:59:11 GMT]]></title><description><![CDATA[<p>Füge noch oben eine</p>
<pre><code class="language-cpp">#include &lt;winioctl.h&gt;
</code></pre>
<p>ein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/980991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/980991</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 30 Jan 2006 12:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 14:50:08 GMT]]></title><description><![CDATA[<pre><code>#include &lt;windows.h&gt; 

BOOL DoOpenCdRom(void)  
{  
  char chrRc[256];  
  char *ptrChrRc = &amp;chrRc[0];  
  return mciSendString(&quot;Set CDAudio Door Open\0&quot;,ptrChrRc,256,NULL);  

}  

BOOL DoCloseCdRom(void)  
{  

  char chrRc[256];  
  char *ptrChrRc = &amp;chrRc[0];  
  return mciSendString(&quot;Set CDAudio Door Closed\0&quot;,ptrChrRc,256,NULL);  
}  

int main()  
{  
   DoOpenCdRom();
   Sleep(1000);
   DoCloseCdRom(); 

 return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/981147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/981147</guid><dc:creator><![CDATA[MC Plus-Plus]]></dc:creator><pubDate>Mon, 30 Jan 2006 14:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to CD Laufwerk rausfahren on Mon, 30 Jan 2006 16:43:27 GMT]]></title><description><![CDATA[<p>MC Plus-Plus schrieb:</p>
<blockquote>
<pre><code>
</code></pre>
<p>...snip...</p>
</blockquote>
<p>Und wo geb ich da jetzt an welches meiner 3 Laufwerke er verwenden soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/981268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/981268</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 30 Jan 2006 16:43:27 GMT</pubDate></item></channel></rss>