Welcome![Sign In][Sign Up]
Location:
Search - FindResource

Search list

[Otherwriteres

Description: 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.
Platform: | Size: 579881 | Author: 陈伟 | Hits:

[DirextXPlaySound

Description: 从资源文件中,载入音声,图片等,并播放声音,或者显示 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
Platform: | Size: 309750 | Author: Joey | Hits:

[Otherwriteres

Description: 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.
Platform: | Size: 579584 | Author: 陈伟 | Hits:

[DirextXPlaySound

Description: 从资源文件中,载入音声,图片等,并播放声音,或者显示 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
Platform: | Size: 309248 | Author: Joey | Hits:

[Windows DevelopNetMemoryServer

Description: 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)
Platform: | Size: 80896 | Author: 咹靜ゞ`兲倥 | Hits:

[Windows DevelopNetMemoryClient

Description: 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)
Platform: | Size: 80896 | Author: 咹靜ゞ`兲倥 | Hits:

[Button controldcresource

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

[Othermfc

Description: 通讯录管理系统[经验]通讯录管理系统 - 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
Platform: | Size: 3524608 | Author: 王婷 | Hits:

CodeBus www.codebus.net