1
votes

What 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

2

2 Answers

0
votes

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

0
votes

No, there are no other ways. It's either static or dynamic. Also, you don't need a .def file for LoadLibrary.