摘要:
一.创建动态链接库 #ifndef DLL_IMPORT #define DLL _declspec(dllexport) #else #define DLL _declspec(dllimport) #endif #define COMP_C extern "C" COMP_C void DLL fun() { cout<<"this is test"<<endl; } HINSTANCE hIns =LoadLibrary("./testDll.dll"); typedef void (*lpfun) () 阅读全文