Date Time Picker Strange Behavior in Windows 7
-
I have an app, developed in VC6.0 which uses a Date Time Picker control to display the time in a CTime object using HH:mm:ss format. This works OK on XP based PCs but when I run it on Windows 7 (32 bit) it displays the wrong time: A time of 00:00:10 is displayed as 16:00:10. The Date Time Picker control is mapped to the CTime object using MFC DDX_DateTimeCtrl. The time value in the CTime object seems to be correct. Has anyone come across this kind of thing before? TIA :thumbsup:
-
I have an app, developed in VC6.0 which uses a Date Time Picker control to display the time in a CTime object using HH:mm:ss format. This works OK on XP based PCs but when I run it on Windows 7 (32 bit) it displays the wrong time: A time of 00:00:10 is displayed as 16:00:10. The Date Time Picker control is mapped to the CTime object using MFC DDX_DateTimeCtrl. The time value in the CTime object seems to be correct. Has anyone come across this kind of thing before? TIA :thumbsup:
Sounds like the regional (i.e., locale) settings are different between the two machines.
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous