Click here to Skip to main content
15,885,899 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO Pin
yingkou2-Feb-05 13:53
yingkou2-Feb-05 13:53 
Generalspin control for opengl Pin
cell511-Feb-05 14:42
cell511-Feb-05 14:42 
Generalspin control for opengl Pin
cell511-Feb-05 14:39
cell511-Feb-05 14:39 
QuestionHow to turn off hard disk immediately? Pin
ErisonWu1-Feb-05 14:09
ErisonWu1-Feb-05 14:09 
AnswerRe: How to turn off hard disk immediately? Pin
David Crow2-Feb-05 2:55
David Crow2-Feb-05 2:55 
GeneralRe: How to turn off hard disk immediately? Pin
ErisonWu2-Feb-05 14:48
ErisonWu2-Feb-05 14:48 
GeneralRe: How to turn off hard disk immediately? Pin
David Crow3-Feb-05 2:39
David Crow3-Feb-05 2:39 
GeneralA Simple Q on Returning Values from a Dialog Pin
LighthouseJ1-Feb-05 13:53
LighthouseJ1-Feb-05 13:53 
I have checked several pages on here and on other sites about returning values from calling a dialog. Some sites say "use UpdateData" and others say "don't use UpdateData". I try both ways and neither of them work so either I'm not implementing either way right or there's a third way I don't know. Here's the DoDataExchange function that's in the dialog that I call (the child):
void CCompressionTest::DoDataExchange(CDataExchange* pDX) {<br />
	CDialog::DoDataExchange(pDX);<br />
	DDX_Control(pDX, IDC_DOUBLE_COMBO, m_doubleComboBox);<br />
	DDX_Control(pDX, IDC_SINGLE_COMBO, m_singleComboBox);<br />
	DDX_Radio(pDX, IDC_SINGLE_RADIO, m_compressionRadio);<br />
}


Here's the code where it's called by the parent and then used:
CCompressionTest dialog;<br />
if (dialog.DoModal()) {<br />
    CString message;<br />
    message.Format("val1: %u\nval2: %u\nval3: %u", dialog.m_compressionRadio, dialog.m_singleComboInt, dialog.m_doubleComboInt);<br />
    AfxMessageBox(message, MB_OK);<br />
}

When I type "dialog.", the variables show up in the list so I know it is aware of the variables, but the result is all zeroes. I've spun my wheels for long enough and I am asking for help. Thanks in advance, Nate.
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
Ryan Binns1-Feb-05 18:01
Ryan Binns1-Feb-05 18:01 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
LighthouseJ1-Feb-05 18:24
LighthouseJ1-Feb-05 18:24 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
David Crow2-Feb-05 3:04
David Crow2-Feb-05 3:04 
GeneralRe: A Simple Q on Returning Values from a Dialog Pin
LighthouseJ2-Feb-05 3:32
LighthouseJ2-Feb-05 3:32 
QuestionHow to tell when a socket is closed? Pin
shultas1-Feb-05 12:53
shultas1-Feb-05 12:53 
AnswerRe: How to tell when a socket is closed? Pin
Paul Belikian1-Feb-05 13:52
Paul Belikian1-Feb-05 13:52 
GeneralRe: How to tell when a socket is closed? Pin
shultas1-Feb-05 14:08
shultas1-Feb-05 14:08 
GeneralRe: How to tell when a socket is closed? Pin
Ravi Bhavnani2-Feb-05 2:56
professionalRavi Bhavnani2-Feb-05 2:56 
AnswerRe: How to tell when a socket is closed? Pin
markkuk2-Feb-05 1:00
markkuk2-Feb-05 1:00 
Generaltoolbar problem Pin
a3331-Feb-05 12:23
a3331-Feb-05 12:23 
GeneralDelay calling Pin
DiMats1-Feb-05 11:06
DiMats1-Feb-05 11:06 
GeneralRe: Delay calling Pin
Tom Wright1-Feb-05 11:19
Tom Wright1-Feb-05 11:19 
GeneralRe: Delay calling Pin
DiMats1-Feb-05 11:29
DiMats1-Feb-05 11:29 
GeneralRe: Delay calling Pin
DiMats1-Feb-05 12:59
DiMats1-Feb-05 12:59 
GeneralRe: Delay calling Pin
David Crow2-Feb-05 3:07
David Crow2-Feb-05 3:07 
GeneralRe: Delay calling Pin
DiMats2-Feb-05 3:46
DiMats2-Feb-05 3:46 
GeneralRe: Delay calling Pin
David Crow2-Feb-05 4:03
David Crow2-Feb-05 4:03 

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.