2个回答
2013-07-11
展开全部
lua-users里提供了几个解决方法:1) Write your App in VB, while using Lua for some simple scripting and
config file stuff.
Solution: Compile Lua as a DLL, import the DLL functions into
VB, and hack away.
2) Write your App in Lua, using VB controls.
Solution: Find one of these COM interfaces, and use the COM controls
to make your app go. You'll have to write some windows event loop
handling code, but this should be doable. You won't be able to use
the VB dev environment at all.
3) Write your App in VB, with Lua talking back to it in complicated ways.
Solution: Do #1. Then you'll have to experiment with registering a
VB function as a Lua C-function. I think it should work just fine.
Then you can write your call-back functions in VB, and you should
be set.
http://lua-users.org/lists/lua-l/2000-01/msg00017.html
config file stuff.
Solution: Compile Lua as a DLL, import the DLL functions into
VB, and hack away.
2) Write your App in Lua, using VB controls.
Solution: Find one of these COM interfaces, and use the COM controls
to make your app go. You'll have to write some windows event loop
handling code, but this should be doable. You won't be able to use
the VB dev environment at all.
3) Write your App in VB, with Lua talking back to it in complicated ways.
Solution: Do #1. Then you'll have to experiment with registering a
VB function as a Lua C-function. I think it should work just fine.
Then you can write your call-back functions in VB, and you should
be set.
http://lua-users.org/lists/lua-l/2000-01/msg00017.html
2013-07-11
展开全部
LUA语言没听过....请LZ介绍介绍
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询