Different ways of loading DLL into MFC?
What 开发者_Python百科are the different ways to load a win32 or MFC DLL into an MFC application?
I know there are 2 ways to link a DLL. 1.) Include the lib file created with the DLL 2.) Using .def file and LoadLibrary function. Is there any other ways to link the DLL?
Regards, AH
This can be done dynamically or statically depending on your requirement.
This link gives you enough information.
http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9855
No, there are no other ways. It's either static or dynamic. Also, you don't need a .def file for LoadLibrary.
精彩评论