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

C / C++ / MFC

 
GeneralOT Pin
toxcct12-Jan-06 6:56
toxcct12-Jan-06 6:56 
GeneralRe: OT Pin
Owner drawn12-Jan-06 17:02
Owner drawn12-Jan-06 17:02 
GeneralRe: Function implementation in header file creates linker warnings Pin
Garth J Lancaster12-Jan-06 11:24
professionalGarth J Lancaster12-Jan-06 11:24 
GeneralRe: Function implementation in header file creates linker warnings Pin
Prakash Nadar12-Jan-06 17:39
Prakash Nadar12-Jan-06 17:39 
GeneralRe: Function implementation in header file creates linker warnings Pin
Garth J Lancaster12-Jan-06 17:43
professionalGarth J Lancaster12-Jan-06 17:43 
AnswerRe: Function implementation in header file creates linker warnings Pin
Alexander M.,13-Jan-06 6:20
Alexander M.,13-Jan-06 6:20 
QuestionUTC and local time management Pin
jjmv12-Jan-06 6:00
jjmv12-Jan-06 6:00 
AnswerRe: UTC and local time management Pin
Phil C12-Jan-06 13:06
Phil C12-Jan-06 13:06 
I think if you first fill a SYSTEMTIME structure with the nyear, nmonth, nday... values then use it in your CTime constructor your times will work.

ie.
<br />
<br />
SYSTEMTIME st;<br />
    st.wYear=nyear;<br />
    st.wMonth=nmonth;<br />
    st.wDay=nday;<br />
    st.wHour=nhour;<br />
    st.wMinute=nmin;<br />
    st.wSecond=nsec;<br />
CTime mytime(&st);//and away you go<br />
<br />


Regardless if that particular method works or not. If you use SYSTEMTIME object there's a bunch of functions available to go back and forth between time zones that may make your life easier.
GeneralRe: UTC and local time management Pin
jjmv13-Jan-06 7:12
jjmv13-Jan-06 7:12 
GeneralRe: UTC and local time management Pin
Phil C13-Jan-06 12:28
Phil C13-Jan-06 12:28 
GeneralRe: UTC and local time management Pin
jjmv18-Jan-06 3:53
jjmv18-Jan-06 3:53 
AnswerRe: UTC and local time management Pin
ThatsAlok12-Jan-06 17:50
ThatsAlok12-Jan-06 17:50 
Questionkeyboard buffer Pin
Eytukan12-Jan-06 5:06
Eytukan12-Jan-06 5:06 
AnswerRe: keyboard buffer Pin
Owner drawn12-Jan-06 17:00
Owner drawn12-Jan-06 17:00 
GeneralRe: keyboard buffer Pin
Stephen Hewitt12-Jan-06 20:27
Stephen Hewitt12-Jan-06 20:27 
GeneralRe: keyboard buffer Pin
Owner drawn12-Jan-06 20:28
Owner drawn12-Jan-06 20:28 
GeneralRe: keyboard buffer Pin
Eytukan12-Jan-06 21:50
Eytukan12-Jan-06 21:50 
AnswerRe: keyboard buffer Pin
ThatsAlok12-Jan-06 17:37
ThatsAlok12-Jan-06 17:37 
GeneralRe: keyboard buffer Pin
Eytukan12-Jan-06 21:52
Eytukan12-Jan-06 21:52 
QuestionVC6 -> VC7 code blows up from 2 to 20 MiB Pin
Sebastian Schneider12-Jan-06 4:14
Sebastian Schneider12-Jan-06 4:14 
AnswerRe: VC6 -> VC7 code blows up from 2 to 20 MiB Pin
Nish Nishant12-Jan-06 5:00
sitebuilderNish Nishant12-Jan-06 5:00 
AnswerRe: VC6 -> VC7 code blows up from 2 to 20 MiB Pin
Prakash Nadar12-Jan-06 5:25
Prakash Nadar12-Jan-06 5:25 
AnswerRe: VC6 -> VC7 code blows up from 2 to 20 MiB Pin
Chris Losinger12-Jan-06 5:28
professionalChris Losinger12-Jan-06 5:28 
GeneralRe: VC6 -> VC7 code blows up from 2 to 20 MiB Pin
Maximilien12-Jan-06 5:47
Maximilien12-Jan-06 5:47 
GeneralRe: VC6 -> VC7 code blows up from 2 to 20 MiB Pin
peterchen12-Jan-06 11:20
peterchen12-Jan-06 11:20 

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.