-
September 2nd, 2003, 08:13 AM
#1
COleDateTime::ParseDateTime issues under XP using VC++ 6.0
I have previously developed all my source code under VC++ 6.0 under windows 2000.
I have upgraded my PC to XP and have now run into a problem using COleDateTime::ParseDateTime.
Whereas the following code fragment was working fine under any non XP windows machine, it now no longer works.
CString strDate;
COleDateTime coDate;
CTime tNow = CTime::GetCurrentTime();;
strDate = tNow.Format("%Y/%m/%d %H:%M:%S");
coDate.ParseDateTime(strDate);
strDate.Format("%d/%d/%d %d:%d:%d",coDate.GetYear(), coDate.GetMonth(), coDate.GetDay(), coDate.GetHour(), coDate.GetMinute(), coDate.GetSecond());
Whereas the COleDateTime variable coDate would be set to a valid date time via the ParseDateTime function, it is now no longer doing so under XP.
Can anyone help?
Many Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|