[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Use in Visual Basic
- From: Jamie Webb <j@...>
- Date: Fri, 30 Jan 2004 17:41:57 +0000
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
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