Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About strings in c language Pin
Erudite_Eric16-Apr-13 7:33
Erudite_Eric16-Apr-13 7:33 
GeneralRe: About strings in c language Pin
dusty_dex16-Apr-13 9:19
dusty_dex16-Apr-13 9:19 
AnswerRe: About strings in c language Pin
Erudite_Eric16-Apr-13 4:54
Erudite_Eric16-Apr-13 4:54 
GeneralRe: About strings in c language Pin
H.Brydon16-Apr-13 5:16
professionalH.Brydon16-Apr-13 5:16 
GeneralRe: About strings in c language Pin
Erudite_Eric16-Apr-13 7:32
Erudite_Eric16-Apr-13 7:32 
AnswerRe: About strings in c language Pin
Marco Bertschi17-Apr-13 1:46
protectorMarco Bertschi17-Apr-13 1:46 
QuestionUnable to read in edit control data Pin
ForNow15-Apr-13 3:46
ForNow15-Apr-13 3:46 
QuestionRe: Unable to read in edit control data Pin
David Crow15-Apr-13 3:55
David Crow15-Apr-13 3:55 
AnswerRe: Unable to read in edit control data Pin
ForNow15-Apr-13 4:44
ForNow15-Apr-13 4:44 
AnswerRe: Unable to read in edit control data Pin
H.Brydon15-Apr-13 17:44
professionalH.Brydon15-Apr-13 17:44 
AnswerRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 4:33
mveRichard MacCutchan15-Apr-13 4:33 
GeneralRe: Unable to read in edit control data Pin
ForNow15-Apr-13 4:45
ForNow15-Apr-13 4:45 
GeneralRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 5:41
mveRichard MacCutchan15-Apr-13 5:41 
GeneralRe: Unable to read in edit control data Pin
ForNow15-Apr-13 5:57
ForNow15-Apr-13 5:57 
GeneralRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 6:53
mveRichard MacCutchan15-Apr-13 6:53 
GeneralRe: Unable to read in edit control data Pin
H.Brydon15-Apr-13 17:51
professionalH.Brydon15-Apr-13 17:51 
GeneralRe: Unable to read in edit control data Pin
H.Brydon15-Apr-13 17:47
professionalH.Brydon15-Apr-13 17:47 
GeneralRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 21:01
mveRichard MacCutchan15-Apr-13 21:01 
GeneralRe: Unable to read in edit control data Pin
Orjan Westin15-Apr-13 22:47
professionalOrjan Westin15-Apr-13 22:47 
GeneralRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 23:05
mveRichard MacCutchan15-Apr-13 23:05 
GeneralRe: Unable to read in edit control data Pin
Orjan Westin16-Apr-13 0:14
professionalOrjan Westin16-Apr-13 0:14 
No, the posted code looks fine, stylistic issues aside, so more information would be needed, in particular OnInitDialog and the button click message handler, but every place where UpdateData is called would need to be checked, as it's a quite common to overwrite the data you want before reading it, which is what I suspect happens here.

Personally, I think that using GetWindowText - which seems to work - makes more sense until one is more familiar with MFC and all its horribleness with magic macros. Use DDX_Control and get and set your data via the control instead.
GeneralRe: Unable to read in edit control data Pin
H.Brydon16-Apr-13 4:56
professionalH.Brydon16-Apr-13 4:56 
GeneralRe: Unable to read in edit control data Pin
Richard MacCutchan15-Apr-13 23:47
mveRichard MacCutchan15-Apr-13 23:47 
AnswerRe: Unable to read in edit control data Pin
H.Brydon15-Apr-13 17:42
professionalH.Brydon15-Apr-13 17:42 
GeneralRe: Unable to read in edit control data Pin
ForNow15-Apr-13 18:36
ForNow15-Apr-13 18:36 

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.