Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSerialization Pin
Nick Armstrong20-Aug-01 22:09
Nick Armstrong20-Aug-01 22:09 
GeneralRe: Serialization Pin
Niklas L20-Aug-01 22:32
Niklas L20-Aug-01 22:32 
GeneralHELP !!! CHARFORMAT2 and yHeight Pin
20-Aug-01 21:42
suss20-Aug-01 21:42 
GeneralMDI application Pin
The_Server20-Aug-01 21:14
The_Server20-Aug-01 21:14 
GeneralRe: MDI application Pin
Ulf Öhlén20-Aug-01 22:36
Ulf Öhlén20-Aug-01 22:36 
GeneralCompress Pin
20-Aug-01 20:21
suss20-Aug-01 20:21 
GeneralRe: Compress Pin
Christian Graus21-Aug-01 0:51
protectorChristian Graus21-Aug-01 0:51 
GeneralCOleDateTimeSpan wierdness.... Pin
Liam O'Hagan20-Aug-01 20:13
Liam O'Hagan20-Aug-01 20:13 
Can anyone tell me why the following code does what it does:
(Note that the code has been trivialised for readability Smile | :) )

ZeroTime.SetDateTime( 1970, 1, 1, 0, 0, 0 );
OtherTime.SetDateTime(1970, 1, 1, 0, 0, 10);

COleDateTimeSpan TimeDifference;
TimeDifference= (OtherTime - ZeroTime);

CString Seconds, TotalSeconds;

Seconds.Format("%10d", TimeDifference.GetSeconds());
TotalSeconds.Format("%10d", TimeDifference.GetTotalSeconds());
Seconds.Replace(' ','0');
Seconds.Replace(' ','0');

After all that I get the following output:

Seconds = 0000000010
TotalSeconds = 0000000000

Why can't GetTotalSeconds determine the correct number of seconds??
Environment is Visual C++ 6, SP5 on Win NT4 SP6

It's driving me nuts!!

Thanks anyone that can help! Blush | :O

Senior Test Engineer
GLI Australia
www.gli.com.au

GeneralRe: COleDateTimeSpan wierdness.... Pin
Kelly Herald21-Aug-01 17:13
Kelly Herald21-Aug-01 17:13 
GeneralRe: COleDateTimeSpan wierdness.... Pin
Liam O'Hagan21-Aug-01 20:54
Liam O'Hagan21-Aug-01 20:54 
GeneralSome body Help me !!! Pin
quangpm09a20-Aug-01 15:16
quangpm09a20-Aug-01 15:16 
GeneralRe: Some body Help me !!! Pin
Sam C20-Aug-01 15:46
Sam C20-Aug-01 15:46 
QuestionIt's friggin HUGE! Is VC++ on crack? Pin
Todd Smith20-Aug-01 14:04
Todd Smith20-Aug-01 14:04 
AnswerRe: It's friggin HUGE! Is VC++ on crack? Pin
CodeGuy21-Aug-01 2:09
CodeGuy21-Aug-01 2:09 
QuestionOnly got a .dll file; Now what?? Pin
20-Aug-01 12:55
suss20-Aug-01 12:55 
AnswerRe: Only got a .dll file; Now what?? Pin
Ben Burnett20-Aug-01 14:18
Ben Burnett20-Aug-01 14:18 
AnswerRe: Only got a .dll file; Now what?? Pin
The_Server20-Aug-01 20:40
The_Server20-Aug-01 20:40 
AnswerRe: Only got a .dll file; Now what?? Pin
Mukkie21-Aug-01 7:08
Mukkie21-Aug-01 7:08 
QuestionHow to add non MFC classes to the Class Wizard Pin
20-Aug-01 12:26
suss20-Aug-01 12:26 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
Orbital^20-Aug-01 20:52
Orbital^20-Aug-01 20:52 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
Malcolm McMahon21-Aug-01 0:48
Malcolm McMahon21-Aug-01 0:48 
GeneralStretchBlt Pin
AJ12320-Aug-01 11:58
AJ12320-Aug-01 11:58 
GeneralRe: StretchBlt Pin
Christian Graus20-Aug-01 13:11
protectorChristian Graus20-Aug-01 13:11 
QuestionHow to Print two string Pin
nulldreamer20-Aug-01 10:57
nulldreamer20-Aug-01 10:57 
AnswerRe: How to Print two string Pin
20-Aug-01 12:29
suss20-Aug-01 12:29 

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.