/ Published in: C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <Windows.h> //define a functor typedef void __stdcall (*F_functionName)(int arg1, int arg2); HANDLE handle = LoadLibrary("LibraryName.dll"); if(handle == NULL) { //error } //assing value to funtor F_functionName functionName = (F_functionName ) GetProcAddress(handle, "FunctionName"); //use function functionName(1,2); //free library when nog longer needed FreeLibrary(handle);