lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm trying to use loadlib under Windows. No problem on incorporating
the dll with "loadlib". "callfromlib" also works fine. But: How do I
have to declare and register a function within the DLL with Lua? As far
as I understand, I can't use "lua_register", as I can't simply pass the
function pointer across the DLL boundary.

Anybody using loadlib under Windows and could send me a tiny fragment
showing this?

Regards,
Patrick.