분류 전체보기
[MFC] MFC에서 Excel 사용(Automation Class 와 ExcelFormat Library )
Automation Class 활용 두 클래스를 이용Excel Automation class - CXLAutomation Wrpper class - CXLEzAutomation 필요한 파일 XLEzAutomation.h XLEzAutomation.cpp XLAutomation.h XLAutomation.cpp 함수를 구현할 파일에 추가 #include "XLEzAutomation.h" wchar_t chThisPath[_MAX_PATH]; GetCurrentDirectory( _MAX_PATH, chThisPath); UpdateData(TRUE); // 엑셀파일이 있는 경로 지정CString strThisPath ;strThisPath.Format(_T("%s\\%s.xlsx") ,_T("C:\\Wor..
[cmd] -dir /s 옵션
[cmd] -dir /s 옵션 ( 파일 찾기 ) 파일 찾기: 현재 하드 전체에서, 모든 GIF 파일 찾기 dir /s \*.gif 설명: dir 명령에서 /s 라는 옵션은 현재 디렉토리와 하위 디렉토리까지 모두 뒤져서 찾으라는 의미입니다. *.gif 는, gif 라는 확장자를 가진 모든 파일을 다 찾으라는 뜻입니다. \ 는, 루트 디렉토리를 의미합니다. 따라서 \*.gif 이것은, 루트 디렉토리부터 시작하여 하드의 모든 디렉토리를 다 뒤져서 gif 파일을 찾으라는 뜻입니다. 디렉토리만 찾기: 현재 하드 전체에서, windows 로 시작하는 모든 디렉토리명을 찾음 dir /s /a:d \windows* 설명 /a:d 는 파일이 아닌 디렉토리만을 목표로 하라는 뜻입니다. windows* 는, windows ..
[MFC] 2014.02.26 _ get(), getline() 함수 비교
: get()은 문자만 입력받을 수 있다. - 이 함수는 개행문자를 입력 큐에 그대로 남겨둔다. #include void main() { char a, b, c; a = cin.get(); //cin.get(a) 가능 b = cin.get(); c = cin.get(); //1 cout
[MFC] List Control Editing ( 클릭시 수정 / 에디트박스로 출력 )
1. 리스트 컨트롤 변수, 위치기억 변수 생성 - CListCtrl m_editListCtrl; - int iSavedItem, iSavedSubitem; 2. 에디트 컨트롤 생성 - ID : IDC_EDIT_MODIFY 3. OnInitDialog에서 샘플 데이터를 넣어놓고, 2번에서 만든 에디트 컨트롤을 숨신다 BOOL CxxxxDlg::OnInitDialog() { CDialog::OnInitDialog(); .......................... m_editListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES); m_editListCtrl.InsertColumn(0, _T("FIELD1"), LVCFMT_LEFT, 100);..