본문 바로가기

전체 글

(219)
728x90
반응형

C++, MFC。DLL 생성 및 적용 1. DLL 프로젝트 생성 # 공유 MFC DLL을 사용하는 기본 DLL 파일 용량은 작으나 MFC 관련 DLL 모두 배포해야 사용 가능 더보기 https://learn.microsoft.com/ko-kr/cpp/windows/redistributing-the-mfc-library?view=msvc-170 MFC 라이브러리 재배포 자세한 정보: MFC 라이브러리 재배포 learn.microsoft.com # MFC를 정적으로 링크한 기본 DLL 파일 용량이 커지지만 독립적 실행 가능 # MFC 확장 DLL MFC 실행 파일만 사용 가능 더보기 https://learn.microsoft.com/ko-kr/cpp/build/regular-dlls-statically-linked-to-mfc?view=msvc..
C++, MFC。텍스트 파일로 로그 생성(ofstream) 보호되어 있는 글입니다.
C++, MFC。소요 시간 측정(time()) 1. 필수 헤더 파일 #include 2. 소스 코드 time_t tStart, tEnd; double dTimeTaken; tStart = time(NULL); // 시간 측정 할 코드 작성 tEnd = time(NULL); dTimeTaken = (double)(tEnd - tStart); 더보기 https://learn.microsoft.com/ko-kr/cpp/c-runtime-library/reference/time-time32-time64?view=msvc-170 time, _time32, _time64 다음에 대해 자세히 알아보세요. 시간, _time32, _time64 learn.microsoft.com
C++, MFC。현재 프로그램 실행 경로(GetModuleFileName) // 로그를 생성할 경로 저장 변수 선언 char wsPath[MAX_PATH] = { 0 }; CString sExePath, sDicPath; // 현재 프로세스의 실행 파일 경로 검색 memset(wsPath, 0, sizeof(wsPath) / sizeof(WCHAR)); ::GetModuleFileName(NULL, wsPath, MAX_PATH); sExePath.Format(_T("%s"), wsPath); // 실행 파일 이름 제거(경로 취득) int nPos; nPos = sExePath.ReverseFind('\\'); sDicPath.Format(_T("%s"), sExePath.Left(nPos)); 더보기 https://learn.microsoft.com/ko-kr/windows/..
C++, MFC。HRESULT 완료 상태 메시지 출력 함수의 완료 상태(오류나 경고)를 설명하는 데 사용되는 32비트 값 1. 필요 헤더 파일 #include 2. 소스 코드 std::string message = std::system_category().message(hr) CString sMsg(message.c_str()); 더보기 https://learn.microsoft.com/en-us/previous-versions/bb446131(v=msdn.10)?redirectedfrom=MSDN HRESULT Table of contents HRESULT Article 11/18/2015 In this article --> 4/8/2010 The HRESULT data type is a 32-bit value is used to describe an e..
Info。빠른 실행, 시작 폴더 위치 1. 빠른 실행 폴더 위치 %APPDATA%\Microsoft\Internet Explorer\Quick Launch 2. 현재 사용자의 시작 폴더 위치 %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup 3. 모든 사용자의 시작 폴더 위치 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
C++, MFC。다이얼로그 영역 외 마우스 이벤트 추적(SetCapture, GetCapture, ReleaseCapture) 1. 마우스 이벤트 추가 WM_LBUTTONUP, WM_LBUTTONDOWN, WM_MOUSEMOVE 2. 마우스 캡쳐 추가 # SetCapture 마우스 메세지 점유 더보기 https://learn.microsoft.com/ko-kr/windows/win32/api/winuser/nf-winuser-setcapture SetCapture 함수(winuser.h) - Win32 apps 마우스 캡처를 현재 스레드에 속한 지정된 창으로 설정합니다. learn.microsoft.com # GetCapture 마우스 캡쳐 핸들 반환 더보기 https://learn.microsoft.com/ko-kr/windows/win32/api/winuser/nf-winuser-getcapture GetCapture 함수(..
C++, MFC。다이얼로그(Dialog) 투명화 보호되어 있는 글입니다.
728x90
반응형