Click here to Skip to main content
15,908,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Edit Control Pin
Alan Balkany5-Jun-08 5:05
Alan Balkany5-Jun-08 5:05 
AnswerRe: Edit Control Pin
Trupti Mehta5-Jun-08 21:50
Trupti Mehta5-Jun-08 21:50 
GeneralRe: Edit Control Pin
Alan Balkany6-Jun-08 3:15
Alan Balkany6-Jun-08 3:15 
AnswerRe: Edit Control Pin
toxcct5-Jun-08 0:02
toxcct5-Jun-08 0:02 
AnswerRe: Edit Control Pin
Rajesh R Subramanian5-Jun-08 0:15
professionalRajesh R Subramanian5-Jun-08 0:15 
AnswerRe: Edit Control Pin
sudhir_Kumar5-Jun-08 0:33
sudhir_Kumar5-Jun-08 0:33 
AnswerRe: Edit Control Pin
sudhir_Kumar5-Jun-08 0:35
sudhir_Kumar5-Jun-08 0:35 
AnswerRe: Edit Control Pin
James R. Twine5-Jun-08 1:11
James R. Twine5-Jun-08 1:11 
   If you are not filtering the allowable characters in the edit control, you may have cases where users enter data that cannot be converted to a double.  For example, 12345.65a, abc123, 123..4, etc.

   While I would suggest getting the text from the control and then converting it to a double, I would use strtod(...)/_tcstod(...)/wcstod(...) instead.  It provides a way to tell you what character causes conversion to fail, which can be used to provide automatic error handling (i.e. ignore any invalid characters), or to provide a more helpful error message to the user.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



GeneralRe: Edit Control Pin
Trupti Mehta5-Jun-08 4:21
Trupti Mehta5-Jun-08 4:21 
GeneralRe: Edit Control Pin
James R. Twine5-Jun-08 6:47
James R. Twine5-Jun-08 6:47 
AnswerRe: Edit Control Pin
David Crow5-Jun-08 2:45
David Crow5-Jun-08 2:45 
QuestionQuestion on accessing variable within innerblock? Pin
Super Hornet4-Jun-08 23:54
Super Hornet4-Jun-08 23:54 
AnswerRe: Question on accessing variable within innerblock? Pin
toxcct5-Jun-08 0:00
toxcct5-Jun-08 0:00 
AnswerRe: Question on accessing variable within innerblock? Pin
CPallini5-Jun-08 0:11
mveCPallini5-Jun-08 0:11 
AnswerRe: Question on accessing variable within innerblock? Pin
sudhir_Kumar5-Jun-08 0:29
sudhir_Kumar5-Jun-08 0:29 
AnswerRe: Question on accessing variable within innerblock? Pin
Nibu babu thomas5-Jun-08 0:58
Nibu babu thomas5-Jun-08 0:58 
AnswerRe: Question on accessing variable within innerblock? Pin
Eytukan5-Jun-08 1:58
Eytukan5-Jun-08 1:58 
AnswerRe: Question on accessing variable within innerblock? Pin
Rajesh R Subramanian5-Jun-08 2:46
professionalRajesh R Subramanian5-Jun-08 2:46 
GeneralRe: Question on accessing variable within innerblock? Pin
Super Hornet5-Jun-08 6:33
Super Hornet5-Jun-08 6:33 
QuestionHow to create pages in Dialog box plz help Pin
Member 46556854-Jun-08 23:13
Member 46556854-Jun-08 23:13 
AnswerRe: How to create pages in Dialog box plz help Pin
toxcct4-Jun-08 23:16
toxcct4-Jun-08 23:16 
GeneralRe: How to create pages in Dialog box plz help Pin
Member 46556854-Jun-08 23:25
Member 46556854-Jun-08 23:25 
GeneralRe: How to create pages in Dialog box plz help Pin
toxcct4-Jun-08 23:27
toxcct4-Jun-08 23:27 
QuestionRe: How to create pages in Dialog box plz help Pin
CPallini4-Jun-08 23:18
mveCPallini4-Jun-08 23:18 
AnswerRe: How to create pages in Dialog box plz help Pin
Member 46556854-Jun-08 23:40
Member 46556854-Jun-08 23:40 

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.