Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compilation Error From VC 6.0 to VC 7.1 Pin
Identity Undisclosed12-Sep-05 20:00
Identity Undisclosed12-Sep-05 20:00 
QuestionWMI,IPAddress,SubnetMask setting! Doesn't work. Pin
Tcpip200512-Sep-05 1:36
Tcpip200512-Sep-05 1:36 
AnswerRe: WMI,IPAddress,SubnetMask setting! Doesn't work. Pin
Tcpip200512-Sep-05 1:39
Tcpip200512-Sep-05 1:39 
QuestionVolume Control through program.... Pin
ashwath200512-Sep-05 1:17
ashwath200512-Sep-05 1:17 
AnswerRe: Volume Control through program.... Pin
David Crow12-Sep-05 3:10
David Crow12-Sep-05 3:10 
QuestionRe: Volume Control through program.... Pin
ashwath200512-Sep-05 4:29
ashwath200512-Sep-05 4:29 
AnswerRe: Volume Control through program.... Pin
David Crow12-Sep-05 4:39
David Crow12-Sep-05 4:39 
GeneralRe: Volume Control through program.... Pin
ashwath200512-Sep-05 18:33
ashwath200512-Sep-05 18:33 
In the code below ,where should i use the "MIXERCONTROL_CONTROLTYPE_MUTE"
control type.Kindly let me know.


MMRESULT result;
HMIXER hMixer;
result = mixerOpen(&hMixer, MIXER_OBJECTF_MIXER, 0, 0, 0);
//obtain a handle to the mixer device.


//we need to get the speaker line of the mixer device

MIXERLINE ml = {0};
ml.cbStruct = sizeof(MIXERLINE);
ml.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_SPEAKERS;
result = mixerGetLineInfo((HMIXEROBJ) hMixer,&ml, MIXER_GETLINEINFOF_COMPONENTTYPE);



//we need to get the volume control of the speaker line.

MIXERLINECONTROLS mlc = {0};
MIXERCONTROL mc = {0};
mlc.cbStruct = sizeof(MIXERLINECONTROLS);
mlc.dwLineID = ml.dwLineID;
mlc.dwControlType = MIXERCONTROL_CONTROLTYPE_VOLUME ;
mlc.cControls = 1;
mlc.pamxctrl = &mc;
mlc.cbmxctrl = sizeof(MIXERCONTROL);
result = mixerGetLineControls((HMIXEROBJ) hMixer,
&mlc, MIXER_GETLINECONTROLSF_ONEBYTYPE);


//MIXERCONTROL_CONTROLTYPE_VOLUME
//set the volume level

MIXERCONTROLDETAILS mcd = {0};
MIXERCONTROLDETAILS_UNSIGNED mcdu = {0};
mcdu.dwValue = iVal; // the volume is a number between 0 and 65535
mcd.cbStruct = sizeof(MIXERCONTROLDETAILS);
mcd.hwndOwner = 0;
mcd.dwControlID = mc.dwControlID;
mcd.paDetails = &mcdu;
mcd.cbDetails = sizeof(MIXERCONTROLDETAILS_UNSIGNED);
mcd.cChannels = 1;
result = mixerSetControlDetails((HMIXEROBJ) hMixer,
&mcd, MIXER_SETCONTROLDETAILSF_VALUE);


GeneralRe: Volume Control through program.... Pin
David Crow19-Sep-05 7:25
David Crow19-Sep-05 7:25 
Questionpassing reference to vector in dll function Pin
Anonymous12-Sep-05 1:15
Anonymous12-Sep-05 1:15 
AnswerRe: passing reference to vector in dll function Pin
ab8lam12-Sep-05 1:49
ab8lam12-Sep-05 1:49 
AnswerRe: passing reference to vector in dll function Pin
Nemanja Trifunovic12-Sep-05 2:17
Nemanja Trifunovic12-Sep-05 2:17 
QuestionGraphics.MeasureString word wrap problem Pin
Kramer_198212-Sep-05 1:13
Kramer_198212-Sep-05 1:13 
QuestionOutlined Font in Direct3D ? Pin
Danoo12-Sep-05 1:10
Danoo12-Sep-05 1:10 
QuestionSystem Menu in MFC -Plz Help Pin
parims12-Sep-05 0:45
parims12-Sep-05 0:45 
AnswerRe: System Menu in MFC -Plz Help Pin
toxcct12-Sep-05 0:50
toxcct12-Sep-05 0:50 
Questionwhat does the MapViewOfFile do exactly?? Pin
Anonymous12-Sep-05 0:42
Anonymous12-Sep-05 0:42 
AnswerRe: what does the MapViewOfFile do exactly?? Pin
Niklas L12-Sep-05 3:06
Niklas L12-Sep-05 3:06 
GeneralRe: what does the MapViewOfFile do exactly?? Pin
namaskaaram12-Sep-05 4:02
namaskaaram12-Sep-05 4:02 
GeneralRe: what does the MapViewOfFile do exactly?? Pin
Niklas L12-Sep-05 4:24
Niklas L12-Sep-05 4:24 
GeneralRe: what does the MapViewOfFile do exactly?? Pin
Chintoo72312-Sep-05 6:01
Chintoo72312-Sep-05 6:01 
GeneralRe: what does the MapViewOfFile do exactly?? Pin
namaskaaram12-Sep-05 17:11
namaskaaram12-Sep-05 17:11 
QuestionCreate child process Pin
whofmans12-Sep-05 0:29
whofmans12-Sep-05 0:29 
AnswerRe: Create child process Pin
David Crow12-Sep-05 3:13
David Crow12-Sep-05 3:13 
QuestionProblems with .NET double data type Pin
sirtimid12-Sep-05 0:11
sirtimid12-Sep-05 0:11 

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.