Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

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
PaulS_UK25-Feb-15 5:04 
QuestionHow to get User Login and logout time in C++ / MFC .? Pin
mbatra3124-Feb-15 23:05
mbatra3124-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
David Crow25-Feb-15 5:49
David Crow25-Feb-15 5:49 
AnswerRe: How to get User Login and logout time in C++ / MFC .? Pin
mbatra3125-Feb-15 19:21
mbatra3125-Feb-15 19:21 
GeneralRe: How to get User Login and logout time in C++ / MFC .? Pin
Frankie-C25-Feb-15 21:32
Frankie-C25-Feb-15 21:32 
GeneralRe: How to get User Login and logout time in C++ / MFC .? Pin
David Crow26-Feb-15 2:22
David Crow26-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
Thakur JAI SINGH24-Feb-15 20:57 
AnswerRe: Dynamic Menu Creation Pin
_Flaviu24-Feb-15 21:29
_Flaviu24-Feb-15 21:29 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH24-Feb-15 22:22
Thakur JAI SINGH24-Feb-15 22:22 
GeneralRe: Dynamic Menu Creation Pin
_Flaviu25-Feb-15 0:10
_Flaviu25-Feb-15 0:10 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH25-Feb-15 0:30
Thakur JAI SINGH25-Feb-15 0:30 
GeneralRe: Dynamic Menu Creation Pin
_Flaviu25-Feb-15 0:45
_Flaviu25-Feb-15 0:45 
GeneralRe: Dynamic Menu Creation Pin
Thakur JAI SINGH25-Feb-15 2:09
Thakur JAI SINGH25-Feb-15 2:09 
GeneralRe: Dynamic Menu Creation Pin
Frankie-C25-Feb-15 3:06
Frankie-C25-Feb-15 3:06 
QuestionRe: Dynamic Menu Creation Pin
David Crow25-Feb-15 5:53
David Crow25-Feb-15 5:53 
QuestionSetEvent and WaitForSiongleObject Pin
Munchies_Matt23-Feb-15 6:02
Munchies_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
Munchies_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
Munchies_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
Munchies_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.