Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - LockResource
Search - LockResource - List
DL : 0
This console application shows how to bake resources into console applications. The sample also demonstrates using FindResource(), LockResource(), FreeResource(), and SizeofResource() APIs to access the bytes in the image resources directly. The sample uses an ofstream and a stdio FILE to write the bytes of the resource out to new files.
Date : 2008-10-13 Size : 566.29kb User : 陈伟

DL : 0
从资源文件中,载入音声,图片等,并播放声音,或者显示 HINSTANCE h=AfxGetInstanceHandle() HRSRC hr=FindResource(h,\"IDW\",\"WAVE\") HGLOBAL hg=LoadResource(h,hr) LPSTR lp=(LPSTR)LockResource(hg) sndPlaySound(lp,SND_MEMORY|SND_ASYNC) FreeResource(hg) return 0
Date : 2008-10-13 Size : 302.49kb User : Joey

DL : 0
Rectangle GetDC SetROP2 ReleaseDC CreateRectRgn SelectClipRgn DeleteObject SelectObject CreatePen CreateSolidBrush SetTextColor SetBkColor SetRect LockResource UnlockResource GetCursor LoadCursor GetStockObject LineTo SetCursor ShowCursor DrawText LoadString MessageBox CreateFontIndirect GetTextMetrics ClientToScreen SetCursorPos GetMessageTime GetKeyState GetClientRect SetWindowPos BeginPaint EndPaint DefWindowProc
Date : 2008-10-13 Size : 93.67kb User : 安新军

DL : 0
This console application shows how to bake resources into console applications. The sample also demonstrates using FindResource(), LockResource(), FreeResource(), and SizeofResource() APIs to access the bytes in the image resources directly. The sample uses an ofstream and a stdio FILE to write the bytes of the resource out to new files.
Date : 2025-07-11 Size : 566kb User : 陈伟

DL : 0
从资源文件中,载入音声,图片等,并播放声音,或者显示 HINSTANCE h=AfxGetInstanceHandle() HRSRC hr=FindResource(h,"IDW","WAVE") HGLOBAL hg=LoadResource(h,hr) LPSTR lp=(LPSTR)LockResource(hg) sndPlaySound(lp,SND_MEMORY|SND_ASYNC) FreeResource(hg) return 0 -From the resource document, loading voice, pictures, etc., and to play a sound, or show HINSTANCE h = AfxGetInstanceHandle () HRSRC hr = FindResource (h, IDW , WAVE ) HGLOBAL hg = LoadResource (h, hr) LPSTR lp = (LPSTR) LockResource (hg) sndPlaySound (lp, SND_MEMORY | SND_ASYNC) FreeResource (hg) return 0
Date : 2025-07-11 Size : 302kb User : Joey

DL : 0
Rectangle GetDC SetROP2 ReleaseDC CreateRectRgn SelectClipRgn DeleteObject SelectObject CreatePen CreateSolidBrush SetTextColor SetBkColor SetRect LockResource UnlockResource GetCursor LoadCursor GetStockObject LineTo SetCursor ShowCursor DrawText LoadString MessageBox CreateFontIndirect GetTextMetrics ClientToScreen SetCursorPos GetMessageTime GetKeyState GetClientRect SetWindowPos BeginPaint EndPaint DefWindowProc
Date : 2025-07-11 Size : 2.8mb User : 安新军

HINSTANCE hInst = LoadLibrary("b.exe") HRSRC hRc = FindResource(hInst, (LPCSTR)1, (LPCSTR)RT_ICON) LPVOID lpResource = LockResource(LoadResource(hInst,hRc)) HANDLE hUpdate = BeginUpdateResource("a.exe", FALSE) UpdateResource(hUpdate, (LPCSTR)RT_ICON, (LPCSTR)1, 0, lpResource, SizeofResource(hInst, hRc)) EndUpdateResource(hUpdate, FALSE) -HINSTANCE hInst = LoadLibrary ( " b.exe" ) HRSRC hRc = FindResource (hInst, (LPCSTR) 1, (LPCSTR) RT_ICON) LPVOID lpResource = LockResource (LoadResource (hInst, hRc)) HANDLE hUpdate = BeginUpdateResource ( " a . exe " , FALSE) UpdateResource (hUpdate, (LPCSTR) RT_ICON, (LPCSTR) 1, 0, lpResource, SizeofResource (hInst, hRc)) EndUpdateResource (hUpdate, FALSE)
Date : 2025-07-11 Size : 79kb User : 咹靜ゞ`兲倥

HINSTANCE hInst = LoadLibrary("b.exe") HRSRC hRc = FindResource(hInst, (LPCSTR)1, (LPCSTR)RT_ICON) LPVOID lpResource = LockResource(LoadResource(hInst,hRc)) HANDLE hUpdate = BeginUpdateResource("a.exe", FALSE) UpdateResource(hUpdate, (LPCSTR)RT_ICON, (LPCSTR)1, 0, lpResource, SizeofResource(hInst, hRc)) EndUpdateResource(hUpdate, FALSE) CloseHandle(hRc) FreeLibrary(hInst) -HINSTANCE hInst = LoadLibrary ( " b.exe" ) HRSRC hRc = FindResource (hInst, (LPCSTR) 1, (LPCSTR) RT_ICON) LPVOID lpResource = LockResource (LoadResource (hInst, hRc)) HANDLE hUpdate = BeginUpdateResource ( " a . exe " , FALSE) UpdateResource (hUpdate, (LPCSTR) RT_ICON, (LPCSTR) 1, 0, lpResource, SizeofResource (hInst, hRc)) EndUpdateResource (hUpdate, FALSE) CloseHandle (hRc) FreeLibrary (hInst)
Date : 2025-07-11 Size : 79kb User : 咹靜ゞ`兲倥
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.