Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert CString to double Pin
bkelly1321-Jun-08 7:18
bkelly1321-Jun-08 7:18 
GeneralRe: Convert CString to double Pin
CPallini22-Jun-08 0:42
mveCPallini22-Jun-08 0:42 
GeneralSomebody voted me down for playing with you. Pin
Rajesh R Subramanian26-Jun-08 0:24
professionalRajesh R Subramanian26-Jun-08 0:24 
GeneralRe: Somebody voted me down for playing with you. Pin
CPallini26-Jun-08 1:00
mveCPallini26-Jun-08 1:00 
GeneralRe: Somebody voted me down for playing with you. Pin
Rajesh R Subramanian26-Jun-08 1:10
professionalRajesh R Subramanian26-Jun-08 1:10 
GeneralRe: Convert CString to double Pin
Nelek21-Jun-08 7:04
protectorNelek21-Jun-08 7:04 
GeneralRe: Convert CString to double Pin
bkelly1321-Jun-08 9:15
bkelly1321-Jun-08 9:15 
GeneralRe: Convert CString to double Pin
Nelek21-Jun-08 9:40
protectorNelek21-Jun-08 9:40 
bkelly13 wrote:
in his/her signature


His Wink | ;) :P

Actually the MFC let you set a member variable for a CEdit as number typ and it gives the error message when you are giving letters by itself. Just put the member variable as double insteads of CEdit*

Problem... when using APIs this can't be used.

But there is another way to do it, with the DDX or DDV (don't remember it well). I read in a manual that the checking can be automated using one of them and you can use the same validation for more than one control. But not sure about it because I was lazy and I used the other option (member variable as the type of number I needed)

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

QuestionRe: Convert CString to double Pin
David Crow21-Jun-08 12:51
David Crow21-Jun-08 12:51 
Questionproblem with status,progressbar [modified] Pin
sanjayvenkat20-Jun-08 23:18
sanjayvenkat20-Jun-08 23:18 
AnswerRe: problem with status,progressbar Pin
Nibu babu thomas21-Jun-08 2:07
Nibu babu thomas21-Jun-08 2:07 
QuestionHow to change width of a combo box at run time Pin
sheshidar20-Jun-08 23:11
sheshidar20-Jun-08 23:11 
AnswerRe: How to change width of a combo box at run time Pin
Hamid_RT20-Jun-08 23:44
Hamid_RT20-Jun-08 23:44 
AnswerRe: How to change width of a combo box at run time Pin
Ștefan-Mihai MOGA21-Jun-08 4:23
professionalȘtefan-Mihai MOGA21-Jun-08 4:23 
QuestionCTreeCtrl image set issue Pin
Abyss20-Jun-08 22:16
Abyss20-Jun-08 22:16 
QuestionDecompressing NTFS Compressed RAW Data Pin
Member 147600120-Jun-08 20:30
Member 147600120-Jun-08 20:30 
QuestionAbout position of AfxMessageBox OK button Pin
Mushtaque Nizamani20-Jun-08 18:55
Mushtaque Nizamani20-Jun-08 18:55 
AnswerRe: About position of AfxMessageBox OK button Pin
zafersavas20-Jun-08 19:28
zafersavas20-Jun-08 19:28 
AnswerRe: About position of AfxMessageBox OK button Pin
Ștefan-Mihai MOGA21-Jun-08 10:43
professionalȘtefan-Mihai MOGA21-Jun-08 10:43 
GeneralDisable Minimize and Maximize Box Pin
cb0206120-Jun-08 16:49
cb0206120-Jun-08 16:49 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha20-Jun-08 19:13
Jagdish V. Bhimbha20-Jun-08 19:13 
GeneralRe: Disable Minimize and Maximize Box Pin
cb0206122-Jun-08 14:54
cb0206122-Jun-08 14:54 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha22-Jun-08 20:28
Jagdish V. Bhimbha22-Jun-08 20:28 
GeneralRe: Disable Minimize and Maximize Box Pin
Christian Kleinheinz26-Jan-09 12:26
Christian Kleinheinz26-Jan-09 12:26 
QuestionEditing boot.ini programatically Pin
Sameer Naik20-Jun-08 4:45
Sameer Naik20-Jun-08 4:45 

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.