开发者

Windows API to unload a library

开发者 https://www.devze.com 2023-01-28 07:27 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消