could anyone please point out how to eject the cd drive programatically?
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.
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."