hi everyone,
I have just tried to implement an DLL into lua with the loadlib command.
http://www.lua.org/pil/8.2.html#C-packages
they say it should work but it does not
Main.lua
path = "c:\\windows\\system32\\user32.dll"
local GetSystemMetrics = assert(loadlib(path, "GetSystemMetrics"))
Error:
"Script Error:
Attempt to call global 'loadlib' (a nil value)
Is there a way of enabling this?
It would increase the possibilities of Leadwerks and Lua a Lot and it would allow us to make better leadwerks projects so that leadwerks can get more famous and bought more often!!