lua-users home
lua-l archive

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


> On 20 Sep 2016, at 08:11, steve donovan <steve.j.donovan@gmail.com> wrote:
> 
> On Tue, Sep 20, 2016 at 4:39 AM, Erik Hougaard <erik@hougaard.com> wrote:
>> The only trouble you can get into, is if your DLL is 32bit and the Windows
>> Program is 64bit, then you need a Lua53.dll compiled for 64bit (a 64bit
>> process cannot load a 32bit DLL).
> 
> The other thing that's important: the DLL must also be compiled with
> mingw so that both the program and the DLL are using the same runtime.
> 

This  ^^^   actually is the most important caveat. 64 vs 32 bit you will notice immediately, yet having the wrong runtime, will give you hard to trace sporadic failures.

Thijs