분류 전체보기44 pthread.h쓰고 pthread관련 함수 오류 뜰 때 해결법 gcc -o 1 1.c -lpthread -lpthread 옵션 추가하면 됨! 2022. 5. 9. 파이썬 문자열 처리 #String을 bytes로 변환 myStr = "Hello" str_utf = myStr.encode('utf-8') str_utf2 = bytes(myStr, 'utf-8') #bytes를 String으로 변환 myBytes = b'Hello' myStr = myBytes.decode('utf-8') myStr2 = str(myBytes, 'utf-8') import binascii #bytes를 16진수 형태로 출력 Bytes = b"Hello" Bytes_hex = Bytes.hex() 또는 Bytes_hex = binascii.hexlify(bytes).decode('utf-8') print(Bytes_hex) 문자열을 16진수로 변환 import binascii #String을 Bytes로 변.. 2022. 4. 7. nCmdShow 매크로 정리 매크로 의미 SW_HIDE 윈도우를 숨긴다. SW_MINIMIZE 윈도우를 최소화시키고 활성화시키지 않는다. SW_RESTORE 윈도우를 활성화시킨다. SW_SHOW 윈도우를 활성화시켜 보여준다. SW_SHOWNORMAL 윈도우를 활성화시켜 보여준다. 솔직히 그냥 WinMain 마지막 인자로 줘면 되서 그닥 상관 안써도 부분이긴함 2022. 4. 1. CreateWindow함수, ShowWindow함수 일단 이것들을 이해하시기 전에 https://lolchang0123.tistory.com/45 윈도우 클래스 정리 LPCSTR lpszClassName; #include typedef struct tagWNDCLASS { UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground.. lolchang0123.tistory.com 여기를 먼저 가셔서 윈도우 클래스에 대해 이해를 하시고 보시는 것을 추천합니다 HWND CreateWindow( LPCTSTR lpClassName, LPCTSTR lpWindowName, DWO.. 2022. 4. 1. 이전 1 2 3 4 5 ··· 11 다음