[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luaffi (ffi library ala luajit's for the standard lua vm)
- From: Joshua Jensen <josh.jjensen@...>
- Date: Tue, 26 Jul 2011 02:34:52 -0600
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