Good Review/๋ฆฌ๋ทฐ

Lenovo ideacentre Stick 300 - ๋ ˆ๋…ธ๋ฒ„ ์Šคํ‹ฑํ”ผ์‹œ

ideacentre Stick 300 ๋ ˆ๋…ธ๋ฒ„ ์Šคํ‹ฑํ”ผ์‹œ 300 ์ด๋‹ค
Computer/C, CPP, MFC

ReadFile()

๊ฐ„๋‹จ์ •๋ฆฌ RedFile(ํŒŒ์ผํ•ธ๋“ค, ์ €์žฅ๋ฒ„ํผ ํฌ์ธํ„ฐ, ์ฝ์–ด์˜ค๋Š” ๋ฐ”์ดํŠธ์ˆ˜,์ถœ๋ ฅ์šฉ์ธ์ˆ˜, ๋น„๋™๊ธฐ์•„๋‹ˆ๋ฉด NULL) ReadFile() ํŒŒ์ผ์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ฝ์–ด์˜ด. ๋™๊ธฐ, ๋น„๋™๊ธฐ ๋ชจ๋‘ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•จ. ์›ํ˜• BOOL ReadFile( HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped ); - HANDLE hFile: ์ฝ๊ณ ์ž ํ•˜๋Š” ํŒŒ์ผ์˜ ํ•ธ๋“ค. ์ด ํŒŒ์ผ์€ GENERIC_READ ์•ก์„ธ์Šค ๊ถŒํ•œ์œผ๋กœ ์—ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. - LPVOID lpBuffer: ์ฝ์–ด ์˜ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ๋ฒ„ํผ์˜ ํฌ์ธํ„ฐ ์ž…๋‹ˆ๋‹ค. - DWORD nNumberOfBytesToRead: ์‹ค์ œ ์ฝ์–ด์˜ค๋Š” ๋ฐ”์ดํŠธ ์ˆ˜๋ฅผ ์ง€..

ReadFile()

Computer/C, CPP, MFC

์œˆ๋„์šฐ ๋ฒ„์ „ ์•Œ์•„๋ณด๊ธฐ

int GetWindowsType(void) { /* return value : -1 : ๋ฒ„์ „์–ป๊ธฐ ์‹คํŒจ 1 : Windows 95, 2 : Windows 98, 3 : Windows ME, 4 : Windows NT, 5 : Windows 2000, 6 : Windows XP, 7 : Windows 2003, 8 : Windows Vista, 2008 9 : Windows 7, 2008 R2 10: Windows 10, */ int nVersion = -1; OSVERSIONINFOEX osvi = { 0, }; BOOL version_ex_flag = 0; osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); if (!(version_ex_flag = GetVer..
Computer/C, CPP, MFC

Windows Styles

Windows Style ์„ ๊ทธ๋ƒฅ ๋ฒˆ์—ญ๊ธฐ...์ด์œ ๋Š” ๊ฐ„๋‹จํ•˜๋‹ค.. ์˜์–ด๋ณด๋‹ค ํ•œ๊ธ€์ด ๋ˆˆ์— ์ž˜ ๋“ค์–ด์˜จ๋‹ค -_-;; ์—†์–ด๋„ ๋˜๊ธดํ•œ๋ฐ...(์•„~๋‚ด๊ฐ€ ์ด๋Ÿฐ๊ฒƒ๋„ ๋ดค์—ˆ๊ตฌ๋‚˜....) ์ƒ์ˆ˜ / ๊ฐ’๊ธฐ์ˆ WS_BORDER0x00800000L์ฐฝ์€ ์–‡์€ ์ค„ ํ…Œ๋‘๋ฆฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.WS_CAPTION0x00C00000L์ฐฝ ์ œ๋ชฉ ํ‘œ์‹œ ์ค„์„ (ํฌํ•จ์ด WS_BORDER์˜ ์Šคํƒ€์ผ์„).WS_CHILD0x40000000L์ฐฝ์€ ์ž์‹ ์ฐฝ์ž…๋‹ˆ๋‹ค. ์ด ์Šคํƒ€์ผ ์ฐฝ์€ ๋ฉ”๋‰ด ๋ชจ์Œ์„ ๊ฐ€์งˆ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด ์Šคํƒ€์ผ์€ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค WS_POPUP์˜ ์Šคํƒ€์ผ.WS_CHILDWINDOW0x40000000L๋™์ผ WS_CHILD์˜ ์Šคํƒ€์ผ.WS_CLIPCHILDREN0x02000000L๋„๋ฉด์€ ๋ถ€๋ชจ ์ฐฝ ๋‚ด์—์„œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ ์ž์‹ ์ฐฝ์— ์˜ํ•ด ์ ์œ  ๋œ ์ง€์—ญ์„ ์ œ์™ธํ•ฉ๋‹ˆ๋‹ค. ๋ถ€..
EIGHTBOX
EIGHTBOX
hwaya.

programmer

๐Ÿ‹์ผ์ƒ์˜ ์†Œ์†Œํ•œ ์ˆœ๊ฐ„๋“ค๋ถ€ํ„ฐ ํฐ ๊ฟˆ๊นŒ์ง€, ํ˜ธ๊ธฐ์‹ฌ์„ ๋งŒ์กฑ์‹œํ‚ฌ ๋‹ค์–‘ํ•œ ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ๋‹ด์€ ๋ธ”๋กœ๊ทธ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ , ์†Œ์†Œํ•œ ํ–‰๋™์— ๊ฐ๋™ํ•˜๋ฉฐ ๊ธฐ๋ปํ•˜๊ณ  ํ•˜๋ฃจํ•˜๋ฃจ์— ๊ฐ์‚ฌํ•˜๋Š” ์‚ฌ๋žŒ๐ŸŒต

Today Yesterday Total
์ตœ์‹ ๊ธ€