I'm having troubles with dynamically loading a windows shared library with Gambit-C Scheme.
(c-declare "#include <stdlib.h>")
(c-declare "#include <Windows.h>")
(define load-library (c-lambda () void "
HINSTANCE lib = LoadLibrary (\"test.dll\");
if (lib) printf (\"works!\");
"))
(load-library)
Directory structure:
--test.scm
--test.dll
GSC commands:
gsc -exe test.scm
I've tested it in pure compiled C and it loads there. Thank you.