Click here to Skip to main content
15,914,215 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Replace a line in a .TXT file Pin
Stephen Hewitt30-Jun-06 4:03
Stephen Hewitt30-Jun-06 4:03 
QuestionGetPixel intercept [modified] Pin
Venkat_Ivy29-Jun-06 23:16
Venkat_Ivy29-Jun-06 23:16 
Questionhow to fix the minimum size of the window? Pin
mimimimilaw29-Jun-06 23:10
mimimimilaw29-Jun-06 23:10 
AnswerRe: how to fix the minimum size of the window? Pin
ovidiucucu29-Jun-06 23:50
ovidiucucu29-Jun-06 23:50 
GeneralRe: how to fix the minimum size of the window? Pin
mimimimilaw30-Jun-06 0:03
mimimimilaw30-Jun-06 0:03 
AnswerRe: how to fix the minimum size of the window? Pin
Viorel.29-Jun-06 23:51
Viorel.29-Jun-06 23:51 
GeneralRe: how to fix the minimum size of the window? Pin
mimimimilaw30-Jun-06 0:03
mimimimilaw30-Jun-06 0:03 
QuestionError in controlling play volume Pin
programmer8129-Jun-06 22:46
programmer8129-Jun-06 22:46 
<pre>CMixer::CMixer(DWORD ComponentType, DestKind dkKind): m_dwControlID(-1), m_bOK(false), m_dwChannels(0)
{
HMIXER hMixer;
HRESULT hr;
hr = mixerOpen(&hMixer, 0, 0, 0,0);
if (FAILED(hr)) return;

MIXERLINE mxl;
MIXERCONTROL mc;
MIXERLINECONTROLS mxlc;
DWORD kind, count;

if (dkKind == Play)
kind = MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT;
else
kind = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;

mxl.cbStruct = sizeof(mxl);
mxl.dwComponentType = kind;

hr = mixerGetLineInfo((HMIXEROBJ)hMixer, &mxl, MIXER_GETLINEINFOF_COMPONENTTYPE);
if (FAILED(hr))
{
mixerClose(hMixer);
return;
}

count = mxl.dwSource;
for(UINT i = 0; i < count; i++)
{
mxl.dwSource = i;
mixerGetLineInfo((HMIXEROBJ)hMixer, &mxl, MIXER_GETLINEINFOF_SOURCE);
if (mxl.dwComponentType == ComponentType)
{
m_dwChannels = mxl.cChannels;
mc.cbStruct = sizeof(mc);
mxlc.cbStruct = sizeof(mxlc);
mxlc.dwLineID = mxl.dwLineID;
mxlc.dwControlType = MIXERCONTROL_CONTROLTYPE_VOLUME;
mxlc.cControls = 1;
mxlc.cbmxctrl = sizeof(MIXERCONTROL);
mxlc.pamxctrl = &mc;
hr = mixerGetLineControls((HMIXEROBJ)hMixer, &mxlc, MIXER_GETLINECONTROLSF_ONEBYTYPE);
m_dwControlID = mc.dwControlID;
break;
};
}
mixerClose(hMixer);
m_bOK = true;
}</pre>

Could anyone please let me know why is this code not controlling the play volume even if MIXERLINE_COMPONENTTYPE_DST_HEADPHONES,play are passed as parameter to CMixer class. The above code is controlling the record volume perfectly.

Indu
QuestionMultiple CHtmlView problem [modified] Pin
hyzerfool29-Jun-06 22:40
hyzerfool29-Jun-06 22:40 
QuestionRe: Multiple CHtmlView problem Pin
Viorel.29-Jun-06 23:37
Viorel.29-Jun-06 23:37 
AnswerRe: Multiple CHtmlView problem Pin
hyzerfool1-Jul-06 18:54
hyzerfool1-Jul-06 18:54 
QuestionPlay simple Avi file in WIN32 API C++ Pin
Ward29-Jun-06 22:25
Ward29-Jun-06 22:25 
AnswerRe: Play simple Avi file in WIN32 API C++ Pin
Sarath C29-Jun-06 22:29
Sarath C29-Jun-06 22:29 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
Ward29-Jun-06 23:10
Ward29-Jun-06 23:10 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
David Crow30-Jun-06 2:46
David Crow30-Jun-06 2:46 
GeneralRe: Play simple Avi file in WIN32 API C++ [modified] Pin
Ward30-Jun-06 2:55
Ward30-Jun-06 2:55 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
David Crow30-Jun-06 3:34
David Crow30-Jun-06 3:34 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
Ward2-Jul-06 20:30
Ward2-Jul-06 20:30 
AnswerRe: Play simple Avi file in WIN32 API C++ Pin
Hamid_RT29-Jun-06 23:43
Hamid_RT29-Jun-06 23:43 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
Ward29-Jun-06 23:48
Ward29-Jun-06 23:48 
GeneralRe: Play simple Avi file in WIN32 API C++ Pin
Hamid_RT29-Jun-06 23:57
Hamid_RT29-Jun-06 23:57 
QuestionSOS.@_@!!! How to open html file in win32 ?? Pin
basecolor29-Jun-06 22:19
basecolor29-Jun-06 22:19 
AnswerRe: SOS.@_@!!! How to open html file in win32 ?? Pin
basecolor29-Jun-06 23:03
basecolor29-Jun-06 23:03 
GeneralRe: SOS.@_@!!! How to open html file in win32 ?? Pin
super_ttd2-Jul-06 0:53
super_ttd2-Jul-06 0:53 
AnswerRe: SOS.@_@!!! How to open html file in win32 ?? Pin
Sarath C30-Jun-06 1:06
Sarath C30-Jun-06 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.