본문 바로가기

분류 전체보기290

Atom에디터 bootstrap4 에러(Failed to load snippets) 해결 방법 Atom 에디터에서 atom-bootstrap4 패키지를 인스톨하면, 아래와 같은 에러가 실행할 때마다 표시가 됩니다. 아래와 같이 수정해 주면 됩니다. C:\Users\username\.atom\packages\atom-bootstrap4\snippets\components-button_group.cson 63줄을 아래와 같이 수정 'Button group - Bootstrap 4' => 'Button group vertical - Bootstrap 4' C:\Users\username\.atom\packages\atom-bootstrap4\snippets\components-cards.cson 348 ~ 359 줄 삭제 C:\Users\username\.atom\packages\atom-bootstr.. 2019. 1. 24.
C, C++ 문자열 인코딩(iconv) iconv 라이브러리를 활용하여 문자열 인코딩 하는 방법입니다. iconv 라이브러리 홈페이지는 "https://www.gnu.org"입니다. (다운로드: https://www.gnu.org/software/libiconv/#downloading) 최신 리눅스의 경우는 기본 설치가 되어 있으며, 설치가 안 되어 있는 경우는 apt-get, rpm 혹은 소스 설치하시면 됩니다. OS가 윈도우인 경우는 라이브러리 파일(*.tar.gz)안에 README.windows에 명시되어 있는대로 빌드하여 사용하시면 됩니다. 주요 함수 설명 iconv_t iconv_open(const char* tocode, const char* fromcode); 설명: 현재 문자셋, 변경할 문자셋을 지정하고 Conversion De.. 2016. 12. 23.
C, C++ 파일 존재 유무 확인 bool IsFileExist(char *szFileFullPath) { FILE *file = fopen(szFileFullPath, "r"); if (file) { fclose(file); return true; } return false; } 2016. 11. 21.
MFC - 폼뷰(FormView)를 다이얼로그(Dialog)처럼 테두리 없애기 "PreCreateWindow, OnInitialUpdate" 함수를 아래와 같이 재정의 해 줍니다. BOOL CMediaManagerView::PreCreateWindow(CREATESTRUCT &cs) { // TODO: CREATESTRUCT cs를 수정하여 여기에서 // Window 클래스 또는 스타일을 수정합니다. cs.style &= ~(WS_BORDER); //추가 cs.style &= ~(WS_THICKFRAME); //추가 cs.style &= ~(WS_DLGFRAME); //추가 return CFormView::PreCreateWindow(cs); } void CMediaManagerView::OnInitialUpdate() { GetParent()->ModifyStyleEx(WS_EX.. 2016. 10. 18.
HTML - HTML5 기본양식 머리말 본문 2016. 2. 18.
MFC - 예외(Exception) 처리 (try catch, CException) Exception 에러 메세지창으로 띄우기 try { // Exception 발생 구문 } catch (CException *ex) { ex->ReportError(); } Excption 에러 메세지 얻어오기 try { // Exception 발생 구문 } catch (CException *ex) { TCHAR szMsg[1024] = {0,}; ex->GetErrorMessage(szMsg, 1024); CString strMsg; strMsg.Format(/*적절한 메세지 만들기*/); ::AfxMessageBox(strMsg); } 위에 예문을 토대로 함수를 만들어 봤습니다. Made by 꾸션 헤더 CString GetErrorDescription(CException *ex); CString G.. 2015. 2. 9.
반응형