Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

vc++ cd-rom schublade öffnen

Empfohlene Antworten

Veröffentlicht

möchte unter vc++6.0 ne funktion oder methode haben welche eben die schublade öffnet...

kann mir wer sagen wie das geht? evtl. "cdrom"-objekt oder so?

habs selber nicht compiliert, aber versuchs halt mal:

#include <windows.h>

#include <stdio.h>

#include <winuser.h>

#include <mmsystem.h>

#include <iostream.h>

bool DoOpenCdRom(void);

bool DoCloseCdRom(void); // Prototypen

int main()

{

bool rc;

char ch;

cout << "Oeffne das Laufwerk..." << endl;

rc = DoOpenCdRom();

anfang:;

printf("Zum Schliessen s druecken: ");

ch=getchar();

printf("\n");

if(ch=='s')

{

cout << "Schliesse es wieder..." << endl;

rc = DoCloseCdRom();

}

else

goto anfang;

}

bool DoOpenCdRom(void)

{

char chrRc[256];

char *ptrChrRc = &chrRc[0];

return mciSendString("Set CDAudio Door Open\0",ptrChrRc,256,NULL);

}

bool DoCloseCdRom(void)

{

char chrRc[256];

char *ptrChrRc = &chrRc[0];

return mciSendString("Set CDAudio Door Closed\0",ptrChrRc,256,NULL);

}

Sorry, musst noch in den Linkereinstellungen winmm.lib miteinbinden....

hmm...klingt vielleicht jetzt nach anfänger..*isauchso*

aber bei der #include <winmm.lib> bringt er den Fehler das er

die Datei nicht öffnen kann...bin ich jetzt zu blöd oder was?:confused:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.