Click here to Skip to main content
15,879,844 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 21:05
Member 21198442-Nov-12 21:05 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 21:41
Santhosh G_2-Nov-12 21:41 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 23:24
Member 21198442-Nov-12 23:24 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 1:56
mveRichard MacCutchan3-Nov-12 1:56 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 4:40
Member 21198443-Nov-12 4:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 6:07
mveRichard MacCutchan3-Nov-12 6:07 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 7:12
Member 21198443-Nov-12 7:12 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 8:03
mveRichard MacCutchan3-Nov-12 8:03 
All I can do is repeat what I said before. Use the events and notifications of the CDialog class. The default action when user presses the enter key is to call the OnOK() function. You add code to that method to capture the text using the UpdateData() function. Let the dialog do the work for you. Maybe you should spend some time reading the documentation about Dialog Boxes[^] in general, and the CDialog[^] class in particular. You may also find that the documentation is available in your own language.
One of these days I'm going to think of a really clever signature.

GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 15:40
Member 21198443-Nov-12 15:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 21:23
mveRichard MacCutchan3-Nov-12 21:23 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 22:59
Member 21198443-Nov-12 22:59 
SuggestionRe: how to return value after user input Pin
David Crow4-Nov-12 16:28
David Crow4-Nov-12 16:28 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 21:57
Member 93537761-Nov-12 21:57 
AnswerRe: problem with sprintf_s() on win 7 Pin
Santhosh G_1-Nov-12 22:34
Santhosh G_1-Nov-12 22:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 16:46
Member 93537764-Nov-12 16:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
Santhosh G_4-Nov-12 17:08
Santhosh G_4-Nov-12 17:08 
AnswerRe: problem with sprintf_s() on win 7 Pin
CPallini1-Nov-12 22:48
mveCPallini1-Nov-12 22:48 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 16:46
Member 93537764-Nov-12 16:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
CPallini4-Nov-12 22:02
mveCPallini4-Nov-12 22:02 
AnswerRe: problem with sprintf_s() on win 7 Pin
Sarath C5-Nov-12 22:14
Sarath C5-Nov-12 22:14 
AnswerRe: problem with sprintf_s() on win 7 Pin
Member 935377613-Nov-12 22:48
Member 935377613-Nov-12 22:48 
Questionhow to get motherboard SN Pin
buffay1-Nov-12 19:42
buffay1-Nov-12 19:42 
AnswerRe: how to get motherboard SN Pin
Richard MacCutchan2-Nov-12 0:37
mveRichard MacCutchan2-Nov-12 0:37 
QuestionChart Control Pin
Tom Paronis1-Nov-12 6:04
Tom Paronis1-Nov-12 6:04 
AnswerRe: Chart Control Pin
Richard MacCutchan1-Nov-12 6:48
mveRichard MacCutchan1-Nov-12 6:48 

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.