explicit call dynamic library in windows and linux platform

Windows platform

 

1. LoadLibrary  (AfxLoadLibrary by MFC)

2. GetProcAddress

3. FreeLibrary (fxFreeLibrary by MFC)

 

DllMain -- default entry function of dll. DLL function consist of internal function and export function.

 

Export ways:

  Apply EXPORT in define file (.DEF file)
  MFC modifier _eclspec(dllexport)
  use /EXPORT option in command line

 

 

 

Linux platform

 

with -rdynamic -ldl option in Makefile file

 

1. dlopen

2. dlsym

3. dlclose

4. dlerror

 

 

 

 

你可能感兴趣的:(explicit call dynamic library in windows and linux platform)