 |
|
 |
Is there a way in MFC to eject a CD/DVD drive when no disk is present in it?
reach2dpg
|
|
|
|
 |
|
 |
Hello i liked ur code.
I have Developed a Atl Component called cdplayer.
But i am not able to increase and decrease it's volume.
Can u plz help me and specify the command that need to pass to mciSendString api so that i can Manage my Components Volume.
Plz help me.
girish
|
|
|
|
 |
|
 |
You can use the MCIWndSetVolume function. Its takes a handle and an integer as arguments. Specify 1000 for normal volume level in the integer. Varying the values can increase or decrease the volume.
Handle is that of the MCIWND window.
The syntax is :-
MCIWndSetVolume(Handle_hwnd,int_Volume);
reach2dpg
|
|
|
|
 |
|
 |
Idown and run it n Visual C++ 6 but it's can run, always have an error "unknow device"
How can i fix it's?
|
|
|
|
 |
|
 |
Having a little problem ...
If not having disk in CD_ROM, "Eject" not working !!!
Can you help me...
Thank
NewTan
|
|
|
|
 |
|
 |
I have the same problem,what is the answer?
|
|
|
|
 |
|
 |
i have an extern unsolved when execute this mciStringSend
|
|
|
|
 |
|
 |
Hi,
your code is nice.
it's playing but i can't hear any sound.
but the cd works fine with windows media player.
why? what i have to do to hear the sound.;P
pls reply me.
|
|
|
|
 |
|
 |
Hi!
The possible problem is that you haven,t audio cable connected to the CDROM and to the audio card. The MCI library is intended only for managing the devices (CDROM, video and etc.) Check whether your audio cable is exist and properly installed.
Regards,
Nikolai Serdiuk
|
|
|
|
 |
|
 |
That is a problem with system setting
Go to control panel, sound and multi media, hardware tab, you should see your CDR(DVD) drive, select it, click on button "properties", in the pop-up dialog, select property tab again, check set digital CD box,
Wild dog
|
|
|
|
 |
|
 |
What if I have more than one CD drive in the computer?
I looked into the class interface, but I see no way to specify the drive letter.
Miroslav Rajcic
|
|
|
|
 |
|
 |
I also have this problem. I cannot find out how to do it in the MCI documents from Microsoft.
|
|
|
|
 |
|
 |
If you are using the MCISENDSTRING command this should work:
i = mciSendString("open d:\ cdaudio alias cd2", 0&, 0, 0)
The [d:] is the root directory for the CD in drive d:. Change if for your drive (d,e,f,g,ect.). The CD2 is the alias name. It can be whatever you choose.
|
|
|
|
 |
|
 |
I think there's a little mistake in the answer above. It doesn't work like that (at least when I try ).
I think the correct message string for chosing the drive must be:
"open d:\ type cdaudio alias CDDriveName"
where d:\ is the drive letter for the desired cd-rom drive.
Works fine at my machine...
|
|
|
|
 |
|
|
 |
|
 |
This seems like a very interesting class. I would be interested in some of the inner workings, design, and methodologies used within the class. Perhaps you could update the article to include your interface to the hardware, and any other things you used or did to get the class to work.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
 |
|
 |
It's all about the mciSendString(). Do a search for that function and the command strings it uses in MSDN, and you'll find all you need.
|
|
|
|
 |