Hi, thanks for this fantastic project.
I am trying to load a DLL that I have created. The DLL conforms to the LUA specifications. When I use “require”, I it tries to look for a LUA file instead of a DLL. If I use “package.loadlib()”, it seems to load the lib without errors but I get an error calling a function.
local path = "C:\\MyModule.dll"
local MyModule = assert(loadlib(path, "luaopen_MyModule"))
MyModule() -- actually open the library
--local MyModule = require("MyModule") -- => loading MyModule.dll => executing luaopen_MyModule()
local w, h = MyModule.getDimensions()
print("getDimensions: " .. w .. " " .. h)
local result = MyModule.getMessage(1,"Hello", 3.5, true)
print(result)