I need to get the system time and update that value to a control every
second. I am not sure how to approach it. This function will get the
system time and update the control but not every second. The buffer was
declared and the Time.h header was included.
void CAlarmDlg::UpdateTime()
{
// store the system time in the buffer
_strtime(timebuf);
// copy buffer to the string variable
CAlarmDlg::m_SysTime = timebuf;
// update the edit control (read only)
SetDlgItemText(IDC_SYSTEM_TIME, m_SysTime);
Quote:
}
Thanks.