LuaInterface error loading module(Lua for Windows is OK)

582 views Asked by At

While I DoFile:

Lua luaVM = new Lua();
luaVM.DoFile("test.lua");

This is the error I got.

An unhandled exception of type 'LuaInterface.LuaException' occurred in LuaInterface.dll
Additional information: error loading module 'mytestlib' from file '.\mytestlib.dll':
    %1 is not a valid Win32 application.

The dll is I made, It works when I call this lua from LFW(lua for Windows). Do I need something like a environment variables? (I added the lua/5.1 folder to EV)

0

There are 0 answers