Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Select Row in ListView Pin
RadioOpa6-Feb-06 4:34
RadioOpa6-Feb-06 4:34 
AnswerRe: Select Row in ListView Pin
James R. Twine6-Feb-06 4:42
James R. Twine6-Feb-06 4:42 
AnswerRe: Select Row in ListView Pin
RadioOpa6-Feb-06 4:45
RadioOpa6-Feb-06 4:45 
QuestionTimer Pin
LCI6-Feb-06 3:36
LCI6-Feb-06 3:36 
AnswerRe: Timer Pin
Cedric Moonen6-Feb-06 3:38
Cedric Moonen6-Feb-06 3:38 
Answer[Message Deleted] Pin
ddmcr6-Feb-06 3:45
ddmcr6-Feb-06 3:45 
GeneralRe: Timer Pin
James R. Twine6-Feb-06 4:04
James R. Twine6-Feb-06 4:04 
GeneralRe: Timer Pin
Ryan Binns6-Feb-06 17:28
Ryan Binns6-Feb-06 17:28 
James R. Twine wrote:
Has anyone ever really got a fractional value returned from that function?


It's not for fractional numbers, it's the range. Remember that a time_t is (usually) a typedef'd long (not unsigned). It's possible to get a difference between two values that overflows the range of a long, necessitating a larger data type - a double. Since the typedef can change, you can't just use an unsigned long for the return value - it may give different answers if a larger data type is used for time_t. The only practical solution is to use the largest datatype possible.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Timer Pin
James R. Twine7-Feb-06 11:29
James R. Twine7-Feb-06 11:29 
AnswerRe: Timer Pin
James R. Twine6-Feb-06 3:58
James R. Twine6-Feb-06 3:58 
AnswerRe: Timer Pin
normanS6-Feb-06 18:20
normanS6-Feb-06 18:20 
QuestionODE equation solver Pin
Ming Luo6-Feb-06 3:25
Ming Luo6-Feb-06 3:25 
AnswerRe: ODE equation solver Pin
minox6-Feb-06 8:11
minox6-Feb-06 8:11 
Questionprinting with MFC Pin
vikas amin6-Feb-06 2:32
vikas amin6-Feb-06 2:32 
AnswerRe: printing with MFC Pin
David Crow6-Feb-06 2:58
David Crow6-Feb-06 2:58 
AnswerRe: printing with MFC Pin
PJ Arends6-Feb-06 10:54
professionalPJ Arends6-Feb-06 10:54 
AnswerRe: printing with MFC Pin
#realJSOP9-Feb-06 9:30
mve#realJSOP9-Feb-06 9:30 
QuestionDetermining partitions? Pin
pc_dev6-Feb-06 2:22
pc_dev6-Feb-06 2:22 
AnswerRe: Determining partitions? Pin
Rage6-Feb-06 2:46
professionalRage6-Feb-06 2:46 
AnswerRe: Determining partitions? Pin
James R. Twine6-Feb-06 3:01
James R. Twine6-Feb-06 3:01 
QuestionAdding hyperlink in static control/dialog Pin
pc_dev6-Feb-06 2:02
pc_dev6-Feb-06 2:02 
AnswerRe: Adding hyperlink in static control/dialog Pin
Cedric Moonen6-Feb-06 2:18
Cedric Moonen6-Feb-06 2:18 
AnswerRe: Adding hyperlink in static control/dialog Pin
James R. Twine6-Feb-06 2:38
James R. Twine6-Feb-06 2:38 
QuestionCListCtrl run-time creation question Pin
Odiee6-Feb-06 1:48
Odiee6-Feb-06 1:48 
AnswerRe: CListCtrl run-time creation question Pin
Hamid_RT6-Feb-06 3:30
Hamid_RT6-Feb-06 3:30 

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.