Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - FindResource
Search - FindResource - 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
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-09 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-09 Size : 302kb User : Joey

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-09 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-09 Size : 79kb User : 咹靜ゞ`兲倥

在VC环境中除了我们所常用的Dialog、Menu和Bitmap等标准资源类型之外,它还支持自定义资源类型(Custom Resource),我们自定义的资源类型能做些什么呢?呵呵,用处-FindResource
Date : 2025-07-09 Size : 52kb User : 胡栋材

DL : 0
通讯录管理系统[经验]通讯录管理系统 - VC.NET论坛 - 编程论坛 8条回复 - 发帖时间: 2005年5月9日 利用MFC连接数据库有很多方法,选择一个比较适中的方法——利用MFC的ODBC类来制作通讯录管理系统。建立对话框应用程序,为其添加菜单实现登陆和密码修改功能,添加MFC-CDialog CString MessageBeep CWnd LoadIcon CDataExchange CWinApp CPoint CDC GetObject CreateFontIndirect SelectObject SetTextColor SetBkMode GetStockObject GetWindowText GetDlgCtrlID LoadString LoadCursor LoadLibrary CopyCursor FreeLibrary SetCursor DrawFocusRect GetParent CRect GetWindowRect CClientDC CFont SetRectEmpty DrawText ClientToScreen InflateRect ScreenToClient GetClientRect CSize GetSystemMetrics GetDlgItem CStatic FindResource LoadResource FreeResource SetWindowText IsIconic CPaintDC SendMessage DrawIcon
Date : 2025-07-09 Size : 3.36mb User : 王婷
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.