LuaInterface and 64Bit

倖福魔咒の 提交于 2019-12-06 16:45:40

You can check out the LuaInterface source code from the Subversion repository hosted on Google Code. It contains Visual Studio project files for building it yourself. Welcome to the world of open-source software!

I just found some links that might help with your problem.

This shows how to modify compiled assemblies to force them to run 32 bit:

http://bchavez.bitarmory.com/archive/2008/04/29/badimageformatexception-errors.aspx

This shows how to compile to target 32 bit:

http://www.atalasoft.com/kb/article.aspx?id=10165

Read this article for a good understanding of 32 and 64 bit managed apps:

http://blogs.msdn.com/joshwil/archive/2004/03/11/88280.aspx

Another good link that talks about 32 vs 64 bit:

http://www.hanselman.com/blog/BackToBasics32bitAnd64bitConfusionAroundX86AndX64AndTheNETFrameworkAndCLR.aspx

You can use KopiLuaInterface. I uses KopiLua, which is written entirely in C# and provides all the well-known interfaces like LuaInterfaces. It even implements the same namespaces as LuaInterface, so you don't have to change anything except your references!

I just migrated my project from LuaInterface to KopiLuaInterface in under 10 minutes without changing a single line of code!

You can find KopiLuaInterface here: https://github.com/gfoot/kopiluainterface/releases

Just remove your LuaInterface and lua51 DLL files from your project and add the 3 DLLs from the KopiLuaInterface release, update your references and you're done.

NLua supports 64 bits and is available via NuGet.

NLua site : http://nlua.org

GitHub: https://github.com/nlua/nlua

NuGet: https://www.nuget.org/packages/NLua/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!