hotwire/examples/win/main.c
interfiberschool 9798f880f9 dlsym
2023-03-17 11:45:37 +00:00

12 lines
222 B
C

#include "../../src/dlopen.h"
typedef void (*func_handle)();
int main()
{
struct hotwire_dll_t dll = hw_dlopen("./bin/exampleWinLib.dll", 0);
func_handle func = (func_handle)hw_dlsym(dll, "test");
func();
}