AfxLoadLibrary is for dynamically loading MFC modules based on the name of the DLL or EXE file passed into it. You can read
the documentation here.[
^]
In order to export a function, you have to use __declspec(dllexport) decoration on the function name, you can follow the tutorials
found here[
^] to help walk you through it.