Click here to Skip to main content
16,021,810 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Unable to read in edit control data Pin
H.Brydon16-Apr-13 5:10
professionalH.Brydon16-Apr-13 5:10 
GeneralRe: Unable to read in edit control data Pin
ForNow16-Apr-13 6:55
ForNow16-Apr-13 6:55 
Questionwhy cannot find code map in vistual studio2012 update2? Pin
hack00414-Apr-13 21:23
hack00414-Apr-13 21:23 
QuestionRe: why cannot find code map in vistual studio2012 update2? Pin
Richard MacCutchan14-Apr-13 22:55
mveRichard MacCutchan14-Apr-13 22:55 
AnswerRe: why cannot find code map in vistual studio2012 update2? Pin
hack00414-Apr-13 23:55
hack00414-Apr-13 23:55 
GeneralRe: why cannot find code map in vistual studio2012 update2? Pin
Richard MacCutchan15-Apr-13 0:21
mveRichard MacCutchan15-Apr-13 0:21 
AnswerRe: why cannot find code map in vistual studio2012 update2? Pin
Sarath C15-Apr-13 7:19
Sarath C15-Apr-13 7:19 
AnswerRe: why cannot find code map in vistual studio2012 update2? Pin
«_Superman_»15-Apr-13 16:16
professional«_Superman_»15-Apr-13 16:16 
Questionthe big-ending and little-ending Pin
ITboy_Lemon13-Apr-13 6:27
professionalITboy_Lemon13-Apr-13 6:27 
AnswerRe: the big-ending and little-ending Pin
dusty_dex13-Apr-13 6:57
dusty_dex13-Apr-13 6:57 
GeneralRe: the big-ending and little-ending Pin
pasztorpisti13-Apr-13 11:56
pasztorpisti13-Apr-13 11:56 
GeneralRe: the big-ending and little-ending Pin
dusty_dex13-Apr-13 12:16
dusty_dex13-Apr-13 12:16 
GeneralRe: the big-ending and little-ending Pin
pasztorpisti13-Apr-13 13:36
pasztorpisti13-Apr-13 13: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.