hi,
could anyone please point out how to eject the cd drive programatically?
thanx.
Printable View
hi,
could anyone please point out how to eject the cd drive programatically?
thanx.
Try:
Code:mciSendString("open cdaudio alias cd1", 0, 0, 0);
mciSendString("set cd1 door open wait", 0, 0, 0);
Remember you must include mmsystem.h. You also need to link the winmm library. To do this in Dev-C++ Go to options>>Compiler options>>Add the following commands when calling compiler(check the box)>>and in that edit box enter -lwinmm. Then it should work.