본문 바로가기

Study Memos/Windows Programming

Win32 개발 팁

1. Direct2D 관련 코드는 Release 함수를 자주 사용하고, Release 후에 해당 객체를 NULL로 해주어야 함.
-> C 언어를 주로 사용하는 사람들은 전처리기를 구성해서 사용
ex) #define TW_Release(x) {if(x != NULL){ x->Release(); x = NULL;}}
-> C++ 로 클래스화하여 윈도우를 관리할 때에는 inline 함수를 사용하는 것도 방법임

'Study Memos > Windows Programming' 카테고리의 다른 글

Linear Gradient (Section 52)  (0) 2020.10.16
Gaussian Blur (Section 50, 51)  (0) 2020.10.13
Direct2D로 그림 파일을 읽어 출력하기 (Section 44)  (0) 2020.10.12
Direct2D (Section 43)  (0) 2020.10.12
GDI+ (Section 42)  (0) 2020.10.12