Windows/MFC

레지스트리에 입력하기

aucd29 2013. 10. 2. 13:54
[code]CString section ='시작/종료 시간';
CString entry    = '시작';
CTime time = CTime::GetCurrentTime();         // get time
CString str = time.Format("%c");                     // timer type
WriteProfileString(section, entry, str);            // registry write

CString section ='시작/종료 시간';
CString entry    = '종료';
CTime time = CTime::GetCurrentTime();         // get time
CString str = time.Format("%c");                     // timer type
WriteProfileString(section, entry, str);            // registry write[/code]