• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Using loadlib for DLLs in Lua and calling Lua functions from the DLL (1 Viewer)

LuaUser41123

Newcomer
Joined
Jul 10, 2021
Messages
1
Reaction score
0
I have a question that I can't seem to find an answer to.

When I load a DLL in lua using the loadlib, I can call functions in my DLL from the lua but is it possible the other way round, I'm thinking as a means for scripts to communicate, so would it be possible for my DLL to call a lua function in a script that has loaded the DLL?

This is within an existing game that is quite limited so a lot of the more sensible options are not at all possible.

Cheers for any help
 
Top