Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Global variables Pin
Waldermort4-Feb-07 6:20
Waldermort4-Feb-07 6:20 
AnswerRe: Global variables Pin
ThatsAlok6-Feb-07 20:19
ThatsAlok6-Feb-07 20:19 
QuestionSaving with property sheet Pin
DanYELL4-Feb-07 4:53
DanYELL4-Feb-07 4:53 
AnswerRe: Saving with property sheet Pin
Mark Salsbery4-Feb-07 9:04
Mark Salsbery4-Feb-07 9:04 
Questionmotion detection Pin
ceejeeb4-Feb-07 3:54
ceejeeb4-Feb-07 3:54 
AnswerRe: motion detection Pin
Waldermort4-Feb-07 6:25
Waldermort4-Feb-07 6:25 
GeneralRe: motion detection Pin
ceejeeb5-Feb-07 1:57
ceejeeb5-Feb-07 1:57 
QuestionGetDlgItemText getting a float Pin
Johpoke4-Feb-07 3:19
Johpoke4-Feb-07 3:19 
Ok, so im running MS Visual C++ 6.0, programming a C++ MFC program.

Im my dialog i have a edit box (locked to numbers) were the user will type in a float (a price)

So then i have to use GetDlgItemText go get the float into a CString (cant use getdlgitemint as it looses the decimals)

but now i then need to convert the cstring (containing someting like 29.88) into a normal float, like this:

Main->Price=cstringprice;

ive tried loads of things, like atof.. but all of them make errors when trying to use the variable it set

so got any better ideas of getting a float from the dialog into a float? or converting what GetDlgItemText brings into a float?

thanks!

/Johannes

AnswerRe: GetDlgItemText getting a float Pin
Waldermort4-Feb-07 6:31
Waldermort4-Feb-07 6:31 
AnswerRe: GetDlgItemText getting a float (SOLVED) Pin
Johpoke4-Feb-07 7:29
Johpoke4-Feb-07 7:29 
AnswerRe: GetDlgItemText getting a float Pin
Hamid_RT4-Feb-07 7:35
Hamid_RT4-Feb-07 7:35 
AnswerRe: GetDlgItemText getting a float Pin
ThatsAlok6-Feb-07 20:19
ThatsAlok6-Feb-07 20:19 
QuestionLocking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 2:35
Sara_fjr4-Feb-07 2:35 
AnswerRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 9:12
Mark Salsbery4-Feb-07 9:12 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Waldermort4-Feb-07 9:23
Waldermort4-Feb-07 9:23 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 10:32
Sara_fjr4-Feb-07 10:32 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Waldermort4-Feb-07 11:26
Waldermort4-Feb-07 11:26 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 11:44
Sara_fjr4-Feb-07 11:44 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 11:54
Mark Salsbery4-Feb-07 11:54 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 12:12
Sara_fjr4-Feb-07 12:12 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 12:22
Mark Salsbery4-Feb-07 12:22 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 12:44
Sara_fjr4-Feb-07 12:44 
QuestionReadDirectoryChangesW() in threads [modified] Pin
Klempie4-Feb-07 2:31
Klempie4-Feb-07 2:31 
AnswerRe: ReadDirectoryChangesW() in threads Pin
Waldermort4-Feb-07 6:36
Waldermort4-Feb-07 6:36 
GeneralRe: ReadDirectoryChangesW() in threads Pin
Klempie4-Feb-07 7:18
Klempie4-Feb-07 7:18 

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.