How do I call functions inside c++ dll from lua?
- by Brian T Hannan
I have a dll written in C++ that is legacy code and cannot modify the source code. I want to be able to call some of the functions inside of the dll from lua.
For example, I'd like to do something like this:
-- My Lua File
include(myCppDll.dll)
function callCppFunctionFromDll()
local result = myCppFunctionFromDll(arg1, arg2)
--Do something with result here
end
Is something like this possible?