Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp in win32 for communication between child dialogs [modified] Pin
amitmistry_petlad 24-Jan-07 0:05
amitmistry_petlad 24-Jan-07 0:05 
Question[GDI] x-offset when using Graphics::DrawString(...) [modified] Pin
_NielsB24-Jan-07 0:01
_NielsB24-Jan-07 0:01 
QuestionRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
Mark Salsbery24-Jan-07 6:24
Mark Salsbery24-Jan-07 6:24 
AnswerRe: [GDI] x-offset when using Graphics::DrawString(...) Pin
_NielsB25-Jan-07 0:58
_NielsB25-Jan-07 0:58 
Questionhelp about date time Pin
Vikram.....23-Jan-07 23:12
Vikram.....23-Jan-07 23:12 
AnswerRe: help about date time Pin
Tony Hill23-Jan-07 23:36
professionalTony Hill23-Jan-07 23:36 
GeneralRe: help about date time Pin
Vikram.....24-Jan-07 1:01
Vikram.....24-Jan-07 1:01 
AnswerRe: help about date time Pin
Nibu babu thomas23-Jan-07 23:44
Nibu babu thomas23-Jan-07 23:44 
vikram Verma wrote:
i need to store time beyond 1st jan 2038 in that object


As the other guy said use COleDateTime, but do not use COleDateTime::GetCurrentTime...

From MSDN...

COleDateTime::GetCurrentTime. The current implementation calls the C run-time function time, which returns a time_t. This limitation isn't currently documented—it presumably took Chris's digging through the Microsoft Foundation Classes (MFC) source code to find it. (As Dr. GUI says, "Use the source, Luke!") Good job. Don't use this function if you need to be year 2038 compliant. Note also that COleDateTime has a constructor and assignment operator that take a time_t—don't use those either.

A suitable replacement will be GetLocalTime.




Nibu thomas
A Developer

Programming tips[^]  My site[^]

AnswerRe: help about date time Pin
Vikram.....24-Jan-07 1:00
Vikram.....24-Jan-07 1:00 
QuestionHow to generate a report? Pin
David L.S.23-Jan-07 22:40
David L.S.23-Jan-07 22:40 
AnswerRe: How to generate a report? Pin
toxcct23-Jan-07 22:54
toxcct23-Jan-07 22:54 
GeneralRe: How to generate a report? Pin
David L.S.23-Jan-07 23:01
David L.S.23-Jan-07 23:01 
AnswerRe: How to generate a report? Pin
David L.S.24-Jan-07 14:20
David L.S.24-Jan-07 14:20 
QuestionNeed help Pin
OmarLodhi23-Jan-07 22:11
OmarLodhi23-Jan-07 22:11 
AnswerRe: Event on the Title Bar Pin
toxcct23-Jan-07 22:16
toxcct23-Jan-07 22:16 
AnswerRe: Need help Pin
Nibu babu thomas23-Jan-07 22:41
Nibu babu thomas23-Jan-07 22:41 
QuestionHelp needed for disabling memory stick Pin
pavan_sw23-Jan-07 22:08
pavan_sw23-Jan-07 22:08 
AnswerRe: Help needed for disabling memory stick Pin
jhwurmbach23-Jan-07 22:37
jhwurmbach23-Jan-07 22:37 
GeneralRe: Help needed for disabling memory stick Pin
pavan_sw24-Jan-07 1:06
pavan_sw24-Jan-07 1:06 
QuestionHow to hook z-order change in window when not in focus? Pin
drai23-Jan-07 22:04
drai23-Jan-07 22:04 
Questionhow to close opened files Pin
pavan_sw23-Jan-07 22:02
pavan_sw23-Jan-07 22:02 
AnswerRe: how to close opened files Pin
toxcct23-Jan-07 22:14
toxcct23-Jan-07 22:14 
GeneralRe: how to close opened files Pin
pavan_sw23-Jan-07 22:25
pavan_sw23-Jan-07 22:25 
GeneralRe: how to close opened files Pin
toxcct23-Jan-07 22:33
toxcct23-Jan-07 22:33 
QuestionRe: how to close opened files Pin
Roger Stoltz23-Jan-07 22:23
Roger Stoltz23-Jan-07 22:23 

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.