Как на MFC получать текущее время? Есть ли какой-нибудь класс, типа Билдеровского TDateTime? Пробовал CTime :
CTime time;
time.GetTime();
SYSTEMTIME sTime;
time.GetAsSystemTime(sTime);
CString str,str1;
str.Format("%d",time.GetHour()); //вылетает Assert
str1.Format("%d",sTime.wHour);
Что не так?