What are the methods of exporting a function from a DLL? There are two ways: By using the DLL’s type library.Taking a reference to the function from the DLL instance.