lua-users home
lua-l archive

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

On Thursday 29 January 2004 17:31, Virgil Smith wrote:
> As Jamie said calling into Lua should be very simple through a DLL.
> Probably your difficult bits will be having Lua call you when scripts call
> functions you've registered cause metamethod invocations etc.  Without
> putting a lot of thought into it I'd expect that you're going to want to
> make an OLE DLL or OCX and trigger OLE events to handle "callbacks from
> Lua".

The VB AddressOf operator (added in VB5 IIRC) allows you to take the address 
of a function (again as a Long, I think). It works fine with Windows API 
callbacks, so it should work with Lua as well.

 -- Jamie Webb