전체 글 (60) 썸네일형 리스트형 C++ Const 정확도(Const Correctness) 목차 1. Const 정확도가 중요한 이유 2. 참조와 포인터에서의 사용 3. 멤버 함수에서의 사용 1. Const 정확도가 중요한 이유 The benefit of const correctness is that it prevents you from inadvertently modifying something you didn’t expect would be modified. const 정확도가 왜 중요할까요? const 정확도의 효과는 의도치 않게 수정하고 싶지 않았던 것에 대해서 수정하는 것을 방지한다는 것입니다. 조금 더 깊게 들어가면 더 다양한 이유가 있겠지만 위의 문장이 const 정확도의 중요성에 있어서 많은 부분을 요약해준다고 생각합니다. 2. 참조와 포인터에서의 사용 const T* p po.. 18. Win32 API - Win32 클래스화(2 - 설명) 목차 1. 실행 흐름 도식화 2. WinMain 3. COM 객체 초기화 4. Window Procedure 정의 5. Window 클래스 등록 6. Direct2D Factory, WIC 객체 생성 7. Window 생성 8. 참조 1. 실행 흐름 도식화 실행 흐름에 대한 이해를 돕는 도식화 입니다. 2. WinMain // Win32_Study.cpp : 애플리케이션에 대한 진입점을 정의합니다. // #include "pch.h" #include "framework.h" #include "Win32_Study.h" #include "CustomWinApp.h" int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR pszCm.. 17. Win32 API - Win32 클래스화(1 - 전체 코드) 목차 1. PCH 2. CustomWinApp.h 3. CustomWinApp.cpp 4. 사용 예시 5. 참고 이미지 출력 예제에 대한 클래스화 진행 내용입니다. 1. PCH #framework.h #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // 거의 사용되지 않는 내용을 Windows 헤더에서 제외합니다. // Windows 헤더 파일 #include // C 런타임 헤더 파일입니다. #include #include #include #include #include #include #include #include #pragma comment(lib, "D2D1.lib") using namespace D2D1; #define SetF.. 이전 1 ··· 11 12 13 14 15 16 17 ··· 20 다음