explicit call dynamic library in windows and linux platform

来源:互联网 发布:淘宝店被降权了怎么办 编辑:程序博客网 时间:2024/06/07 19:55

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

 

 

 

 

原创粉丝点击