lua-users home
lua-l archive

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


> On the installation of my application, this dll will be copied in this
> location C:/program files/my app/myApp_Lua.dll
> 
> I want to launch Lua console with "myApp_Lua.dll" loaded. How can I do so?
> 
> Just to clarify the question I am providing an analogy with Perl where I
> have to run the following at Start->"Run"  to launch perl console with
> myApp_Perl.dll loaded
> 
> cmd.exe /K perl5.10.0.exe  myApp_Perl.dll

In an ideal world, with correct paths sets, this would be

cmd.exe /K lua.exe -lmyApp_Lua

However, "C:/program files/my app/myApp_Lua.dll" is probably not in
the default LUA_CPATH and so you may need to adapt this to eg.

cmd.exe /K lua.exe -e'LUA_CPATH="C:/program files/my app/?.dll;" -lmyApp_Lua