使用案例介绍: 1.在编写的DLL的头文件中,如下操作 在dll的实现文件中。如下: 在main.cpp中如果要使用,没有定义_DLL_EXPORT,则就会使用__declspec(dllimport)