Click here to Skip to main content
16,014,892 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threads and Pointers Pin
led mike19-Mar-09 9:42
led mike19-Mar-09 9:42 
AnswerRe: Threads and Pointers Pin
cmk19-Mar-09 13:17
cmk19-Mar-09 13:17 
QuestionEdit control disappears from dialog [modified] Pin
rp_suman19-Mar-09 7:07
rp_suman19-Mar-09 7:07 
AnswerRe: Edit control disappears from dialog Pin
Code-o-mat19-Mar-09 7:27
Code-o-mat19-Mar-09 7:27 
QuestionC4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 6:47
penny black19-Mar-09 6:47 
AnswerRe: C4244 conversion from 'double' to 'float' warning Pin
Eytukan19-Mar-09 6:56
Eytukan19-Mar-09 6:56 
QuestionRe: C4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 7:02
penny black19-Mar-09 7:02 
AnswerRe: C4244 conversion from 'double' to 'float' warning [fixed] Pin
CPallini19-Mar-09 7:21
mveCPallini19-Mar-09 7:21 
penny black wrote:
Is only remedy to initialize htmin as double?

An explicit cast will do the trick
htmin = static_cast<float>(atof(value));


BTW atof is just an axample of misnamed function.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Thursday, March 19, 2009 2:46 PM

GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
Eytukan19-Mar-09 7:29
Eytukan19-Mar-09 7:29 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
CPallini19-Mar-09 7:38
mveCPallini19-Mar-09 7:38 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 7:36
penny black19-Mar-09 7:36 
QuestionRe: C4244 conversion from 'double' to 'float' warning Pin
CPallini19-Mar-09 7:41
mveCPallini19-Mar-09 7:41 
AnswerRe: C4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 7:47
penny black19-Mar-09 7:47 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
Stuart Dootson19-Mar-09 8:13
professionalStuart Dootson19-Mar-09 8:13 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
Eytukan19-Mar-09 8:15
Eytukan19-Mar-09 8:15 
AnswerRe: C4244 conversion from 'double' to 'float' warning Pin
Cedric Moonen19-Mar-09 8:32
Cedric Moonen19-Mar-09 8:32 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
CPallini19-Mar-09 8:48
mveCPallini19-Mar-09 8:48 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
CPallini19-Mar-09 8:49
mveCPallini19-Mar-09 8:49 
AnswerRe: C4244 conversion from 'double' to 'float' warning Pin
Eytukan19-Mar-09 7:28
Eytukan19-Mar-09 7:28 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 7:37
penny black19-Mar-09 7:37 
AnswerRe: C4244 conversion from 'double' to 'float' warning Pin
Stuart Dootson19-Mar-09 8:11
professionalStuart Dootson19-Mar-09 8:11 
GeneralRe: C4244 conversion from 'double' to 'float' warning Pin
penny black19-Mar-09 8:55
penny black19-Mar-09 8:55 
QuestionMessage Map Handlers Pin
ForNow19-Mar-09 6:38
ForNow19-Mar-09 6:38 
AnswerRe: Message Map Handlers Pin
led mike19-Mar-09 7:31
led mike19-Mar-09 7:31 
AnswerRe: Message Map Handlers Pin
Stuart Dootson19-Mar-09 8:25
professionalStuart Dootson19-Mar-09 8:25 

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.