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

Search list

[File Operatenotview

Description: 文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette RealizePalette GetDIBits ReleaseDC CreateFile WriteFile GlobalUnlock GlobalFree CloseHandle CPaintDC CBitmap CreateCompatibleDC CreateCompatibleBitmap PtInRect BitBlt DeleteObject CPoint ShowWindow ClientToScreen GetWindowDC GetWindowRect CFileDialog CWinApp CSingleDocTemplate CCommandLineInfo UpdateWindow CDialog CDataExchange CDocument CView CPrintInfo GetClientRect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary CreateDialog-document View, CFrameWnd CWnd CStatic CRect MoveWindow Creat ePen CSize CDC SetBkMode SelectObject CPen Lin eTo SetTextColor CString TextOut CFont Back Font DrawText CreateDC GetDeviceCaps DeleteD C GetObject GlobalAlloc GlobalLock GetStockO bject GetDC RealizePalette Get SelectPalette DIBits ReleaseDC CreateFile WriteFile Global Unlock GlobalFree CloseHandle CPaintDC CBitm ap CreateCompatibleDC CreateCompatibleBitm ap PtInRect BitBlt DeleteObject CPoint ShowWi ndow ClientToScreen GetWindowDC GetWindowRe ct CFileDialog CWinApp CSingleDocTemplate CC ommandLineInfo UpdateWindow CDialog CDataEx change CDocument CView CPrintInfo GetClientR ect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary Cre ateDialog
Platform: | Size: 26729 | Author: slansam | Hits:

[GUI DevelopOcxAutoRegisterNew

Description: VC源码自动注册OCX控件 BOOL bResult = FALSE //检查是否支持注册 if (SupportsSelfRegister(strOcxPath)) { HMODULE hModule = ::LoadLibrary(strOcxPath) if (LOADLIBRARY_FAILED(hModule)) return FALSE //获得注册函数地址 CTLREGPROC DLLRegisterServer = (CTLREGPROC)::GetProcAddress(hModule,\"DllRegisterServer\" ) if (DLLRegisterServer != NULL) { HRESULT regResult = DLLRegisterServer() bResult = (regResult == NOERROR) } ::FreeLibrary(hModule) }-VC source automatic registration OCX Controls BOOL bResult = FALSE / / check whether support registration if (SupportsSelfRegister (strOcxPath)) (HMODULE hModule = : : LoadLibrary (strOcxPath) if (LOADLIBRARY_FA ILED (hModule)) return FALSE / / registration function addresses CTLRE GPROC DLLRegisterServer = (CTLREGPROC) : : GetProcAddress (hModule. "DllRegisterServer") if (DLLRegisterServer ! = NULL) (HRESULT = DLLRegisterServ regResult er () bResult = (regResult == NOERROR)) : : FreeLibrary (hModule);)
Platform: | Size: 36070 | Author: chengde | Hits:

[Dialog_Windowwindow_Cwnd

Description: 实现窗口透明 只需在创建窗口函数中加入 SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE, GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000) HINSTANCE hInst = LoadLibrary(\"User32.DLL\") if(hInst) { typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD) MYFUNC fun = NULL //取得SetLayeredWindowAttributes函数指针 fun=(MYFUNC)GetProcAddress(hInst, \"SetLayeredWindowAttributes\") if(fun)fun(this->GetSafeHwnd(),0,200,2) FreeLibrary(hInst) }
Platform: | Size: 26349 | Author: zhangwei | Hits:

[Other resourceU盘自动复制

Description: LoadLibrary GetProcAddress FreeLibrary LocalFree GetVersionEx CloseHandle MapViewOfFile UnmapViewOfFile ExitProcess SetUnhandledExceptionFilter CWinApp OpenMutex CreateMutex CreateThread DeviceIoControl CString GetLogicalDrives GetDriveType CreateFile GetSystemDirectory FindFirstFile GetLastError CopyFile FindClose Sleep CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon DefWindowProc ShowWindow
Platform: | Size: 10214 | Author: 王中才 | Hits:

[File Formatnotview

Description: 文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette RealizePalette GetDIBits ReleaseDC CreateFile WriteFile GlobalUnlock GlobalFree CloseHandle CPaintDC CBitmap CreateCompatibleDC CreateCompatibleBitmap PtInRect BitBlt DeleteObject CPoint ShowWindow ClientToScreen GetWindowDC GetWindowRect CFileDialog CWinApp CSingleDocTemplate CCommandLineInfo UpdateWindow CDialog CDataExchange CDocument CView CPrintInfo GetClientRect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary CreateDialog-document View, CFrameWnd CWnd CStatic CRect MoveWindow Creat ePen CSize CDC SetBkMode SelectObject CPen Lin eTo SetTextColor CString TextOut CFont Back Font DrawText CreateDC GetDeviceCaps DeleteD C GetObject GlobalAlloc GlobalLock GetStockO bject GetDC RealizePalette Get SelectPalette DIBits ReleaseDC CreateFile WriteFile Global Unlock GlobalFree CloseHandle CPaintDC CBitm ap CreateCompatibleDC CreateCompatibleBitm ap PtInRect BitBlt DeleteObject CPoint ShowWi ndow ClientToScreen GetWindowDC GetWindowRe ct CFileDialog CWinApp CSingleDocTemplate CC ommandLineInfo UpdateWindow CDialog CDataEx change CDocument CView CPrintInfo GetClientR ect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary Cre ateDialog
Platform: | Size: 26624 | Author: slansam | Hits:

[GUI DevelopOcxAutoRegisterNew

Description: VC源码自动注册OCX控件 BOOL bResult = FALSE //检查是否支持注册 if (SupportsSelfRegister(strOcxPath)) { HMODULE hModule = ::LoadLibrary(strOcxPath) if (LOADLIBRARY_FAILED(hModule)) return FALSE //获得注册函数地址 CTLREGPROC DLLRegisterServer = (CTLREGPROC)::GetProcAddress(hModule,"DllRegisterServer" ) if (DLLRegisterServer != NULL) { HRESULT regResult = DLLRegisterServer() bResult = (regResult == NOERROR) } ::FreeLibrary(hModule) }-VC source automatic registration OCX Controls BOOL bResult = FALSE// check whether support registration if (SupportsSelfRegister (strOcxPath)) (HMODULE hModule = : : LoadLibrary (strOcxPath) if (LOADLIBRARY_FA ILED (hModule)) return FALSE// registration function addresses CTLRE GPROC DLLRegisterServer = (CTLREGPROC) : : GetProcAddress (hModule. "DllRegisterServer") if (DLLRegisterServer ! = NULL) (HRESULT = DLLRegisterServ regResult er () bResult = (regResult == NOERROR)) : : FreeLibrary (hModule);)
Platform: | Size: 35840 | Author: chengde | Hits:

[Dialog_Windowwindow_Cwnd

Description: 实现窗口透明 只需在创建窗口函数中加入 SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE, GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000) HINSTANCE hInst = LoadLibrary("User32.DLL") if(hInst) { typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD) MYFUNC fun = NULL //取得SetLayeredWindowAttributes函数指针 fun=(MYFUNC)GetProcAddress(hInst, "SetLayeredWindowAttributes") if(fun)fun(this->GetSafeHwnd(),0,200,2) FreeLibrary(hInst) }-Just the realization of a transparent window in the creation of a window function to add SetWindowLong (this-> GetSafeHwnd (), GWL_EXSTYLE, GetWindowLong (this-> GetSafeHwnd (), GWL_EXSTYLE) ^ 0x80000) HINSTANCE hInst = LoadLibrary ( User32.DLL ) if (hInst ) (typedef BOOL (WINAPI* MYFUNC) (HWND, COLORREF, BYTE, DWORD) MYFUNC fun = NULL// function pointer SetLayeredWindowAttributes made fun = (MYFUNC) GetProcAddress (hInst, SetLayeredWindowAttributes ) if (fun) fun (this-> GetSafeHwnd (), 0200,2) FreeLibrary (hInst))
Platform: | Size: 1561600 | Author: zhangwei | Hits:

[Special EffectsLoadDllRes

Description: Visual C++ 创建纯资源 DLL 包含资源(如图标、位图、字符串和对话框)的 DLL。 纯资源 DLL 的应用程序应调用loadLibrary 来显式链接到 DLL。若要访问资源,请调用资源特定的函数之一:LoadBitmap,LoadImage,LoadCursor,LoadIcon,LoadString //资源ID不加 “”。使用完资源后,应用程序应调用 FreeLibrary。 LoadDllRes.rar 演示了全过程。 -Visual C++ to create pure resource DLL that contains resources [such as icons, bitmaps, strings, and dialog box] the DLL. Pure resource DLL application should call LoadLibrary to explicitly link to the DLL. To access resources, please call one of the resources specific function: LoadBitmap, LoadImage, LoadCursor, LoadIcon, LoadString// resource ID without " ." End the use of resources, the application should call FreeLibrary. LoadDllRes.rar demonstrated the entire process.
Platform: | Size: 9118720 | Author: xuyucheng | Hits:

[Windows DevelopRuntime_Dynamic_DLL_Loading

Description: This archive contains two Code::Blocks project. The first one is a DLL skeleton. It includes a default DLLMain function (the DLL entry point) that is called when the DLL is loaded in the memory and a sample function HelloDll. The second project contains a console application that calls LoadLibrary to load the DLL in the virtual address space of the application and GetProcAddreess to get the address of the HelloDll function. After calling the HelloDll function, the Dll is unloaded using FreeLibrary. This is an elegant start-up solution for efficient memory utilisation, plugin system or error tolerant software(missing DLL means missing functionality and application crash can be avoided).
Platform: | Size: 8192 | Author: mihi64 | Hits:

[Program docRichedit

Description: a.可以编译,不能执行的 AfxInitRichEdit() b.升级默认的Riched版本(默认的有一些bug),如 可在InitInstance中添加 LoadLibrary("RICHED20.DLL") 最后注意 FreeLibrary 如果是CRichEditView基类的可用 BOOL CXXXXXXView::PreCreateWindow(CREATESTRUCT& cs) { //装入rich edit version 2.0 if (LoadLibraryA("RICHED20.DLL") == NULL) { AfxMessageBox(_T("Fail to load \"riched20.dll\"."),MB_OK | MB_ICONERROR) -very good!
Platform: | Size: 12288 | 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:

[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:

[OS programHidedll-test

Description: VC使用FreeLibrary隐藏DLL的方法-VC using the FreeLibrary hidden DLL
Platform: | Size: 31744 | Author: Cser↘ | Hits:

[Process-ThreadModuleRun

Description: 运行程序脱离文件映射困扰,程序运行后可对程序做任意操作,包括删除程序,内存中保留代码. 用rundll32.exe加载dll,然后在dll中重新加载自身并FreeLibrary原先加载的那份脱离隐射-Run the program from the file mapping problems, after running the program can do any action, including the deletion of the program, the memory reserved code with rundll32.exe loaded dll, and then re-load the dll and FreeLibrary their share from the previously loaded insinuate
Platform: | Size: 79872 | Author: jha334201553 | Hits:

[e-languagedxclzikzbt

Description: 首先,相信大家都知道易语言静态编译的DLL远线程注入到易语言写的EXE中后,可以远线程调用FreeLibrary进行卸载,但如果被注入的EXE是其他语言写的,就不行了。远线程调用FreeLibrary卸载DLL会导致EXE崩溃。所以很多人认为静态编译的DLL只能注入,不能卸载。-Multithreaded program crashes thread leak solution
Platform: | Size: 30720 | Author: 活活 | Hits:

[OtherPing功能实现

Description: Ping功能实现.txt 很多时候不检查局域网内的IP是否连通,直接通过IP访问,程序会卡住很久,有1分钟左右,这给用户的体验非常不好,现在通过检查是否连通,设置为1.5S后不连通则不进行后面的操作,程序效率大大提升,如下是检查局域网内的IP或者外网的IP是否连通的实现。 ? ? ? 后面的代码直接保存为Ping.Pas,即可直接使用,下面是使用方法 :(Ping Ping.Pas destructor Tping.destroy; begin FreeLibrary(hIcmpDll); inherited destroy; end;)
Platform: | Size: 1024 | Author: dangql@xty | Hits:

CodeBus www.codebus.net