본문 바로가기

Windows/MFC

레지스트리에 입력하기

[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]

'Windows > MFC' 카테고리의 다른 글

Caret  (0) 2013.10.02
word wrap  (0) 2013.10.02
윈도우 종료(리부팅) ExitWindowsEx( EWX_REBOOT, 0);  (0) 2013.10.02
시피유 정보 얻기  (0) 2013.10.02
일단 화면상에 있는 Windows를 BMP로 저장하는 루틴을  (0) 2013.10.02