Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window Equivalent !! Pin
David Crow30-Mar-05 3:13
David Crow30-Mar-05 3:13 
GeneralRe: Window Equivalent !! Pin
ThatsAlok30-Mar-05 17:59
ThatsAlok30-Mar-05 17:59 
GeneralRe: Window Equivalent !! Pin
Ravi Bhavnani30-Mar-05 3:40
professionalRavi Bhavnani30-Mar-05 3:40 
GeneralRe: Window Equivalent !! Pin
John R. Shaw30-Mar-05 7:52
John R. Shaw30-Mar-05 7:52 
GeneralRe: Window Equivalent !! Pin
ThatsAlok30-Mar-05 17:51
ThatsAlok30-Mar-05 17:51 
GeneralCOleDateTime::GetCurrentTime and daylight saving changes Pin
BadJerry29-Mar-05 23:22
BadJerry29-Mar-05 23:22 
GeneralRe: COleDateTime::GetCurrentTime and daylight saving changes Pin
BadJerry30-Mar-05 0:26
BadJerry30-Mar-05 0:26 
GeneralRe: COleDateTime::GetCurrentTime and daylight saving changes Pin
Mike Dimmick30-Mar-05 1:17
Mike Dimmick30-Mar-05 1:17 
Surveycraft should probably have been using gmtime(), not localtime(). gmtime() always returns the current UTC time. localtime() uses TZ if it's set and falls back on the Windows settings if it's not.

Most Windows applications will use GetSystemTime (returns UTC) or GetLocalTime (returns the current time in the time zone selected in Control Panel/Date and Time), rather than the C run-time libraries.

An additional issue is that DOS stored the local time in the hardware clock. It did not have any native support for Daylight Savings Time. When asked for UTC [gmtime(), time()], the DOS C run-time would convert back from local time (with the inherent flaws around the Daylight Savings start and end dates). Windows inherits keeping the hardware clock in local time, for compatibility, but only reads it at boot time, converting to UTC. It then maintains the clock in memory without reference to the hardware clock, relying on interrupts to update the in-memory clock. The hardware clock is, I think, only updated when the time zone changes or the date and time are set explicitly (either by the user or by the NTP client), and also on system shutdown.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: COleDateTime::GetCurrentTime and daylight saving changes Pin
BadJerry30-Mar-05 2:07
BadJerry30-Mar-05 2:07 
QuestionHow to support multi-language Pin
ytod29-Mar-05 23:18
ytod29-Mar-05 23:18 
AnswerRe: How to support multi-language Pin
BadJerry29-Mar-05 23:27
BadJerry29-Mar-05 23:27 
GeneralGetting domain name where a remote computer is attached Pin
Suso29-Mar-05 20:35
Suso29-Mar-05 20:35 
QuestionLink one view to an other? Pin
herime29-Mar-05 20:33
herime29-Mar-05 20:33 
GeneralIHTMLDocument2 loading Pin
mlatimer29-Mar-05 19:43
mlatimer29-Mar-05 19:43 
GeneralRe: IHTMLDocument2 loading Pin
mlatimer29-Mar-05 20:07
mlatimer29-Mar-05 20:07 
GeneralCPropertySheet::SetActivePage() Pin
swati2429-Mar-05 19:11
swati2429-Mar-05 19:11 
GeneralRe: CPropertySheet::SetActivePage() Pin
ThatsAlok29-Mar-05 20:08
ThatsAlok29-Mar-05 20:08 
GeneralRe: CPropertySheet::SetActivePage() Pin
Ravi Bhavnani29-Mar-05 20:13
professionalRavi Bhavnani29-Mar-05 20:13 
GeneralRe: CPropertySheet::SetActivePage() Pin
swati2429-Mar-05 20:31
swati2429-Mar-05 20:31 
Generalsb live Pin
nvd229-Mar-05 17:54
nvd229-Mar-05 17:54 
GeneralRe: sb live Pin
Joel Holdsworth29-Mar-05 20:47
Joel Holdsworth29-Mar-05 20:47 
GeneralCalling Forms from Forms Pin
mvtapia29-Mar-05 17:52
mvtapia29-Mar-05 17:52 
GeneralDevice driver compatability between Win95 & Win98 Pin
Neha.marwaha29-Mar-05 16:51
Neha.marwaha29-Mar-05 16:51 
GeneralRe: Device driver compatability between Win95 & Win98 Pin
MMansonFan2529-Mar-05 22:46
MMansonFan2529-Mar-05 22:46 
QuestionCould anyone help me, please? Pin
New Student29-Mar-05 14:37
New Student29-Mar-05 14:37 

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.