끄적끄적 메모공간
close
프로필 배경
프로필 로고

끄적끄적 메모공간

  • 분류 전체보기 (530) N
    • [====== Development ======] (399)
      • C# (138)
      • C++ (25)
      • Python (40)
      • Android (14)
      • React (16)
      • Flutter (63)
      • DICOM (14)
      • Etc (89)
    • [====== 주식 , 경제 ======] (58)
    • [========== Etc =========] (28)
  • 홈
  • 태그
  • 방명록
File Exist Check

File Exist Check

#include #include #include #include inline bool exists_test0 (const std::string& name) { ifstream f(name.c_str()); return f.good(); } inline bool exists_test1 (const std::string& name) { if (FILE *file = fopen(name.c_str(), "r")) { fclose(file); return true; } else { return false; } } inline bool exists_test2 (const std::string& name) { return ( access( name.c_str(), F_OK ) != -1 ); } inline boo..

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 8. 6.
  • textsms

[MFC] 중복실행 방지

// TestApp.h HANDLE m_hMutex; // TestApp.cpp BOOL TestApp::InitInstance() { m_hMutex = ::CreateMutex(NULL, FALSE, _T("App Name")); if (::GetLastError() == ERROR_ALREADY_EXISTS) { return FALSE; } ... }

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 8. 4.
  • textsms

[C++] ini파일에 Section이 있는지 체크

bool Config::IsExistSection(TCHAR* sectionName) { TCHAR buff[4096] = { 0x20, }; TCHAR sect[512] = { 0x00, }; DWORD n = ::GetPrivateProfileSectionNames(buff, 4096, configFilePath); int pos = 0; BOOL bMakedSect = FALSE; // 하나의 섹션을 구성완료하면 TRUE하여 pos를 0으로 초기화 for (int i = 0; i < n; i++, pos++) { if (buff[i] != '\0') { if (bMakedSect) pos = 0; memcpy(sect + pos, buff + i, 1); bMakedSect = FALSE; cont..

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 8. 2.
  • textsms

[C++] 상위폴더부터 하위폴더까지 자동으로 생성하기

TEST 폴더부터 없다면 TEST , DIR1 , DIR2 폴더를 모두 생성한다 #include "ImageHlp.h" #pragma comment(lib,"ImageHlp.lib") MakeSureDirectoryPathExists("C:\\TEST\\DIR1\\DIR2");

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 8. 2.
  • textsms

Google 의 C++ Coding Style 가이드

여러가지 개발언어에 대한 가이드 모음 Google Style Guides Style guides for Google-originated open-source projects google.github.io C++ 언어에 대한 가이드 Google C++ Style Guide Google C++ Style Guide Background C++ is one of the main development languages used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which ..

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 8. 2.
  • textsms
Log4cxx Library Build

Log4cxx Library Build

1. 파일 준비 - apache-log4cxx-0.10.0 - apr-1.5.2-win32-src - apr-util-1.5.4-win32-src 2. 압축 해제 후 apr , apr-util의 폴더명 변경 3. cmd 실행하여 configure.bat , configure-aprutil.bat 실행 4. log4cxx.dsw를 Visual Studio에서 Open 5. apu.hw에서 APU_HAVE_APR_ICONV 를 1에서 0으로 변경 6. apr_ldap.hw에서 APR_HAS_LDAP 를 1에서 0으로 변경 7. log4cxx.h에서 아래 코드 삭제 template class LOG4CXX_EXPORT std::allocator; \ template class LOG4CXX_EXPORT std..

  • format_list_bulleted [====== Development ======]/C++
  • · 2021. 7. 30.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (530) N
    • [====== Development ======] (399)
      • C# (138)
      • C++ (25)
      • Python (40)
      • Android (14)
      • React (16)
      • Flutter (63)
      • DICOM (14)
      • Etc (89)
    • [====== 주식 , 경제 ======] (58)
    • [========== Etc =========] (28)
최근 글
인기 글
최근 댓글
태그
  • #Style
  • #WPF
  • #비트코인
  • #c#
  • #XAML
  • #블록체인
  • #이더리움
  • #Python
  • #도지코인 거래소
  • #Bitcoin
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바