I have written and application and it loads a dll using AfxLoadLibrary and i want to unload this library memory when there is no use of it.
Is there any windows开发者_如何学运维 API to unload a library?
This one should do it.
BOOL AFXAPI AfxFreeLibrary(HINSTANCE hInstLib);
These functions are part of the MFC library. The pure Windows API equivalents would be LoadLibrary
and FreeLibrary
.
Yes, use AfxFreeLibrary
精彩评论