hi,
could anyone please point out how to eject the cd drive programatically?
thanx.
hi,
could anyone please point out how to eject the cd drive programatically?
thanx.
GameJolt: https://gamejolt.com/@KasunL
Game Development Youtube: https://is.gd/XyhYoP
Amateur IT Blog: http://everything-geeky.blogspot.com/
(and, sorry for my amateur English)
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.
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0