Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.84 KB

freelibrary-and-afxfreelibrary.md

File metadata and controls

39 lines (31 loc) · 1.84 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
FreeLibrary and AfxFreeLibrary | Microsoft Docs
11/04/2016
cpp-tools
article
FreeLibrary
AfxFreeLibrary
C++
extension DLLs [C++], unloading
AfxFreeLibrary method
unloading DLLs
FreeLibrary method
DLLs [C++], linking
explicit linking [C++]
DLLs [C++], unloading
4a48d290-3971-43e9-8e97-ba656cd0c8f8
11
corob-msft
corob
ghogen

FreeLibrary and AfxFreeLibrary

Processes that explicitly link to a DLL call the FreeLibrary function when the DLL module is no longer needed. This function decrements the module's reference count and, if the reference count is zero, unmaps it from the address space of the process.

In an MFC application, use AfxFreeLibrary instead of FreeLibrary to unload an MFC extension DLL. The interface (function prototype) for AfxFreeLibrary is the same as FreeLibrary.

What do you want to do?

What do you want to know more about?

See Also

DLLs in Visual C++
FreeLibrary
AfxFreeLibrary