Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlay sound(wav) Pin
andreas_6356-Dec-06 11:54
andreas_6356-Dec-06 11:54 
AnswerRe: Play sound(wav) Pin
led mike6-Dec-06 12:15
led mike6-Dec-06 12:15 
GeneralRe: Play sound(wav) Pin
Mark Salsbery6-Dec-06 12:46
Mark Salsbery6-Dec-06 12:46 
AnswerRe: Play sound(wav) Pin
Hamid_RT6-Dec-06 17:54
Hamid_RT6-Dec-06 17:54 
QuestionPlay a sound(wav) Pin
andreas_6356-Dec-06 11:51
andreas_6356-Dec-06 11:51 
AnswerRe: Play a sound(wav) Pin
David Crow6-Dec-06 17:19
David Crow6-Dec-06 17:19 
AnswerRe: Play a sound(wav) Pin
Hamid_RT6-Dec-06 17:52
Hamid_RT6-Dec-06 17:52 
Questionneed help MFC Pin
celllllllll6-Dec-06 11:37
celllllllll6-Dec-06 11:37 
I am doing something like this...
 void View::OnView() <br />
{	<br />
	Dialog dlg();<br />
	if(dlg.DoModal() == IDCANCEL)<br />
		return;<br />
	COIN Coin;<br />
	if (dlg.m_ValCoinSwitch == " some text")<br />
		Coin.lights[WFS_SIU_COINSWITCH] = ENABLE;<br />
<br />
	else  (dlg.m_ValCoin2Switch == "some text")<br />
		Coin.lights[WFS_SIU_COINSWITCH] = DISABLE;<br />
}<br />
	<code><br />
<br />
Now, what I am doing in here is "bringing the dialog with DoModal and coded like if Cancel is pressed, then it should return otherwise should run the OK". Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE whatever I chose from ComboBox.<br />
<br />
Will really appreciate help.<br />
<br />
Thanbs <br />
<br />
<div class="ForumSig">C++Prog</div>

AnswerRe: need help MFC Pin
David Crow6-Dec-06 17:23
David Crow6-Dec-06 17:23 
GeneralRe: need help MFC Pin
celllllllll7-Dec-06 12:31
celllllllll7-Dec-06 12:31 
QuestionRe: need help MFC Pin
prasad_som6-Dec-06 17:54
prasad_som6-Dec-06 17:54 
QuestionExcel works in one app but not another Pin
BuckBrown6-Dec-06 8:39
BuckBrown6-Dec-06 8:39 
AnswerRe: Excel works in one app but not another Pin
Chris Losinger6-Dec-06 9:32
professionalChris Losinger6-Dec-06 9:32 
AnswerRe: Excel works in one app but not another Pin
David Crow6-Dec-06 10:05
David Crow6-Dec-06 10:05 
Questionfile location problem Pin
Kim06186-Dec-06 5:52
Kim06186-Dec-06 5:52 
AnswerRe: file location problem Pin
toxcct6-Dec-06 6:12
toxcct6-Dec-06 6:12 
GeneralRe: file location problem Pin
S Douglas9-Dec-06 1:30
professionalS Douglas9-Dec-06 1:30 
GeneralRe: file location problem Pin
toxcct9-Dec-06 2:42
toxcct9-Dec-06 2:42 
AnswerRe: file location problem Pin
Hamid_RT6-Dec-06 17:50
Hamid_RT6-Dec-06 17:50 
QuestionQuery doesn't work in ExecuteSQL Pin
prithaa6-Dec-06 5:33
prithaa6-Dec-06 5:33 
AnswerRe: Query doesn't work in ExecuteSQL Pin
Mark Salsbery6-Dec-06 6:19
Mark Salsbery6-Dec-06 6:19 
AnswerRe: Query doesn't work in ExecuteSQL Pin
David Crow6-Dec-06 10:12
David Crow6-Dec-06 10:12 
GeneralRe: Query doesn't work in ExecuteSQL Pin
prithaa6-Dec-06 18:43
prithaa6-Dec-06 18:43 
GeneralRe: Query doesn't work in ExecuteSQL Pin
Mark Salsbery7-Dec-06 6:34
Mark Salsbery7-Dec-06 6:34 
AnswerRe: Query doesn't work in ExecuteSQL Pin
Hamid_RT6-Dec-06 17:49
Hamid_RT6-Dec-06 17:49 

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.