开发者

Is it possible to load .net dll from Lua code?

开发者 https://www.devze.com 2023-01-29 01:07 出处:网络
I know how to load a C library from Lua: -- Lua require(\"your_dll_name\"); // C extern \"C\" __declspec(dllexport) LUALIB_API int luaopen_your_dll_name(lua_State *L) {...}

I know how to load a C library from Lua:

 -- Lua
 require("your_dll_name");

 // C
 extern "C" __declspec(dllexport) LUALIB_API int luaopen_your_dll_name(lua_State *L) {...}

But is it possible to load .net libraries fro开发者_StackOverflow社区m Lua?


LuaInterface is a library for integration between the Lua language and Microsoft .NET platform's Common Language Runtime (CLR). Lua scripts can use it to instantiate CLR objects, access properties, call methods, and even handle events with Lua functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消