lua-users home
lua-l archive

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


Commit 08a3b3d7eac105e7527ce3f2cfaf062497158a4c (Add ARM CE support) breaks the following simple bit of code because gdi32.dll and user32.dll are not loaded. GetModuleHandleA() fails, contrasted with the previous LoadLibraryA() calls. Checking out cdbfbc7fb558fe66d347e61b3a7e7e88f473b744 (the previous commit) rectifies the problem.

local ffi = require("ffi")
ffi.cdef[[
int MessageBoxA(void *w, const char *txt, const char *cap, int type);
]]
ffi.C.MessageBoxA(nil, "Hello world!", "Test", 0)

-Josh