Click here to Skip to main content
13,554,130 members

C / C++ / MFC

 
GeneralRe: g++ _fullpath compilation error Pin
Jochen Arndt25-Feb-15 5:01
professionalJochen Arndt25-Feb-15 5:01 
GeneralRe: g++ _fullpath compilation error Pin
PaulS_UK25-Feb-15 5:04
memberPaulS_UK25-Feb-15 5:04 
QuestionHow to get User Login and logout time in C++ / MFC .? Pin
mbatra3124-Feb-15 23:05
membermbatra3124-Feb-15 23:05 
AnswerRe: How to get User Login and logout time in C++ / MFC .? Pin
Jochen Arndt24-Feb-15 23:43
professionalJochen Arndt24-Feb-15 23:43 
QuestionRe: How to get User Login and logout time in C++ / MFC .? Pin
DavidCrow25-Feb-15 5:49
memberDavidCrow25-Feb-15 5:49 
AnswerRe: How to get User Login and logout time in C++ / MFC .? Pin
mbatra3125-Feb-15 19:21
membermbatra3125-Feb-15 19:21 
GeneralRe: How to get User Login and logout time in C++ / MFC .? Pin
Frankie-C25-Feb-15 21:32
memberFrankie-C25-Feb-15 21:32 
GeneralRe: How to get User Login and logout time in C++ / MFC .? Pin
DavidCrow26-Feb-15 2:22
memberDavidCrow26-Feb-15 2:22 
mbatra31 wrote:

I have one query again. this function gives the Last logon and Logoff time
in the number of seconds that have elapsed since 00:00:00, January 1, 1970, GMT.
How can I get the correct value in Time format.
Converting time since that epoch was something I learned very early on in my career (some 25 years ago). It's worth the effort at figuring it out (without the help of Google).

mbatra31 wrote:

Also I want to get the record of user logon and logoff time for each day.
Should I use the same function.?
Since the above is always referenced from a fixed point in time, you'd need to "capture" it once per day. Admittedly, there may be a log somewhere that Windows keeps where it writes an entry for every time a user logs in/out of a workstation. I've never had the need to know so I can't tell you if this is true or not.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


QuestionDynamic Menu Creation Pin
Thakur JAI SINGH24-Feb-15 20:57
memberThakur JAI SINGH24-Feb-15 20:57 
AnswerRe: Dynamic Menu Creation Pin
Flaviu224-Feb-15 21:29
memberFlaviu224-Feb-15 21:29 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH24-Feb-15 22:22
memberThakur JAI SINGH24-Feb-15 22:22 
GeneralRe: Dynamic Menu Creation Pin
Flaviu225-Feb-15 0:10
memberFlaviu225-Feb-15 0:10 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH25-Feb-15 0:30
memberThakur JAI SINGH25-Feb-15 0:30 
GeneralRe: Dynamic Menu Creation Pin
Flaviu225-Feb-15 0:45
memberFlaviu225-Feb-15 0:45 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH25-Feb-15 2:09
memberThakur JAI SINGH25-Feb-15 2:09 
GeneralRe: Dynamic Menu Creation Pin
Frankie-C25-Feb-15 3:06
memberFrankie-C25-Feb-15 3:06 
QuestionRe: Dynamic Menu Creation Pin
DavidCrow25-Feb-15 5:53
memberDavidCrow25-Feb-15 5:53 
QuestionSetEvent and WaitForSiongleObject Pin
Munchies_Matt23-Feb-15 6:02
memberMunchies_Matt23-Feb-15 6:02 
AnswerRe: SetEvent and WaitForSiongleObject Pin
Albert Holguin23-Feb-15 9:45
professionalAlbert Holguin23-Feb-15 9:45 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Munchies_Matt23-Feb-15 21:26
memberMunchies_Matt23-Feb-15 21:26 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Jochen Arndt23-Feb-15 23:10
professionalJochen Arndt23-Feb-15 23:10 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Munchies_Matt24-Feb-15 0:02
memberMunchies_Matt24-Feb-15 0:02 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Albert Holguin24-Feb-15 3:54
professionalAlbert Holguin24-Feb-15 3:54 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Munchies_Matt24-Feb-15 4:02
memberMunchies_Matt24-Feb-15 4:02 
GeneralRe: SetEvent and WaitForSiongleObject Pin
Albert Holguin24-Feb-15 4:06
professionalAlbert Holguin24-Feb-15 4:06 

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.


Advertise | Privacy |
Web04-2016 | 2.8.180515.1 | Last Updated 23 May 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid