lua-users home
lua-l archive

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


On Mon, Jun 24, 2013 at 6:40 PM, mohammad <mm_617@yahoo.com> wrote:
> Hello everyone,
> I was wondering if anyone can answer to my question. Is it possible to
> execute lua code in Visual Basic 6.0 or not? if yes please explain how?
> Thanks in advance.
> Regards,
> Mohammad

Possible, yes. Pain in the butt, limited, but possible. You'd have to
declare all of the necessary C API calls in a BASIC module, which
would allow you to invoke VM methods, but you wouldn't be able to
expose any Visual Basic methods to Lua, meaning there would be no
support for callbacks or integration.

Theoretically, the Lua VM could be reimplemented in BASIC as a VB6
module, but this doesn't sound like a good idea considering the
performance characteristics of VB6.

/s/ Adam