hotwire/examples/win/main.c
2023-03-17 12:42:47 +00:00

14 lines
244 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();
hw_dlclose(dll);
}