Need some help
-
Hi! I downloaded the source code for the simple MP3 player from this site. I am trying to add volume buttons in MFC. I added the buttons and functions with the class wizard in Visual C++ 6.0, but my functions are not working. Here is my code: void CAVIPlayerDlg::OnVolumeDown() { long vol; vol = MCIWndGetVolume(m_Video); vol-=250; MCIWndSetVolume(m_Video,vol); } void CAVIPlayerDlg::OnVolumeUp() { long vol; vol = MCIWndGetVolume(m_Video); vol+=250; MCIWndSetVolume(m_Video,vol); } It runs, but the call MCIWndGetVolume(m_Video) returns 0 each time, and the volume isn't affected. Any ideas?
-
Hi! I downloaded the source code for the simple MP3 player from this site. I am trying to add volume buttons in MFC. I added the buttons and functions with the class wizard in Visual C++ 6.0, but my functions are not working. Here is my code: void CAVIPlayerDlg::OnVolumeDown() { long vol; vol = MCIWndGetVolume(m_Video); vol-=250; MCIWndSetVolume(m_Video,vol); } void CAVIPlayerDlg::OnVolumeUp() { long vol; vol = MCIWndGetVolume(m_Video); vol+=250; MCIWndSetVolume(m_Video,vol); } It runs, but the call MCIWndGetVolume(m_Video) returns 0 each time, and the volume isn't affected. Any ideas?