Skip to content

Instantly share code, notes, and snippets.

@agladysh
Created January 21, 2011 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agladysh/790225 to your computer and use it in GitHub Desktop.
Save agladysh/790225 to your computer and use it in GitHub Desktop.
Popping up a message box on Windows
-- Popping up a message box on Windows with LuaJIT2 Git HEAD:
-- (Example by Mike Pall)
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment