Windows/MFC

현재 시간 얻기 (CTime::GetCurrentTime())

aucd29 2013. 10. 2. 17:37
[code]CString section = "start/end time";
CString entry = "end";
CTime time = CTime::GetCurrentTime();
CString str = time.Format("%c");
WriteProfileString(section, entry, str);    // 레지스트리에 값 적기[/code]