在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
#include <windows.h> #include "lauxlib.h" /* Pop-up a Windows message box with your choice of message and caption */ int lua_msgbox(lua_State* L) { const char* message = luaL_checkstring(L, 1); const char* caption = luaL_optstring(L, 2, ""); int result = MessageBoxA(NULL, message, caption, MB_OK); lua_pushnumber(L, result); return 1; } int __declspec(dllexport) libinit(lua_State* L) { lua_register(L, "msgbox", lua_msgbox); return 0; }
|
请发表评论