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

C / C++ / MFC

 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Jon Hulatt26-Sep-02 23:04
Jon Hulatt26-Sep-02 23:04 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 0:03
Andreas Saurwein27-Sep-02 0:03 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Jon Hulatt27-Sep-02 0:44
Jon Hulatt27-Sep-02 0:44 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 2:09
Andreas Saurwein27-Sep-02 2:09 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 2:12
Geert Delmeiren27-Sep-02 2:12 
AnswerRe: How to detect that the system clock has been set backwards? Pin
Steve S26-Sep-02 23:32
Steve S26-Sep-02 23:32 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 0:09
Geert Delmeiren27-Sep-02 0:09 
AnswerRe: How to detect that the system clock has been set backwards? Pin
Phil J Pearson27-Sep-02 2:37
Phil J Pearson27-Sep-02 2:37 
Think about it from another direction:

Why not record the time each time your app exits (keep it in a registry key or a hidden file or something of the sort). When your app starts compare the current time with the last-exit time. If the last-exit time appears to be in the future someone may be cheating. Just remember to allow for DST as someone else suggested.




The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 3:14
Geert Delmeiren27-Sep-02 3:14 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 4:14
Andreas Saurwein27-Sep-02 4:14 
GeneralString -> float (UNICODE) Pin
Anonymous26-Sep-02 21:44
Anonymous26-Sep-02 21:44 
GeneralRe: String -> float (UNICODE) Pin
jmkhael26-Sep-02 21:56
jmkhael26-Sep-02 21:56 
GeneralRe: String -> float (UNICODE) Pin
Steve S26-Sep-02 22:04
Steve S26-Sep-02 22:04 
GeneralCAsyncSocket question Pin
Shamoon26-Sep-02 21:26
Shamoon26-Sep-02 21:26 
GeneralRe: CAsyncSocket question Pin
jmkhael26-Sep-02 21:48
jmkhael26-Sep-02 21:48 
GeneralFind First File Pin
Anonymous26-Sep-02 20:59
Anonymous26-Sep-02 20:59 
GeneralRe: Find First File Pin
Stephane Rodriguez.26-Sep-02 21:45
Stephane Rodriguez.26-Sep-02 21:45 
GeneralRe: Find First File Pin
Steve S26-Sep-02 22:11
Steve S26-Sep-02 22:11 
GeneralRe: Find First File Pin
Renjith Ramachandran27-Sep-02 2:51
Renjith Ramachandran27-Sep-02 2:51 
GeneralRe: Find First File Pin
merc27-Sep-02 14:27
merc27-Sep-02 14:27 
Generalcommand line argument Pin
Mohe26-Sep-02 20:44
Mohe26-Sep-02 20:44 
GeneralRe: command line argument Pin
Roman Fadeyev26-Sep-02 20:47
Roman Fadeyev26-Sep-02 20:47 
GeneralUnicode Problem! Pin
Anonymous26-Sep-02 20:42
Anonymous26-Sep-02 20:42 
GeneralRe: Unicode Problem! Pin
paulb26-Sep-02 21:09
paulb26-Sep-02 21:09 
GeneralRe: Unicode Problem! Pin
Anonymous26-Sep-02 21:23
Anonymous26-Sep-02 21: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.