开发者

Windows API to unload a library

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜