博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
lua 5.3最简单plugin编写
阅读量:4321 次
发布时间:2019-06-06

本文共 508 字,大约阅读时间需要 1 分钟。

#include 
#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;}

 

转载于:https://www.cnblogs.com/cutepig/p/10493375.html

你可能感兴趣的文章
【Hibernate框架】关联映射(一对一关联映射)
查看>>
【算法】大数乘法
查看>>
WPF解析PPT为图片
查看>>
JavaScrict中的断言调试
查看>>
密码服务
查看>>
结构体在内存中的存储
查看>>
冲刺阶段—个人工作总结01
查看>>
基于Python的Webservice开发(二)-如何用Spyne开发Webservice
查看>>
PowerDesigner修改设计图中文字的字体大小等样式
查看>>
Python list和 np.Array 的转换关系
查看>>
jenkins忘记密码如何处理?
查看>>
布尔操作符-逻辑或(||)
查看>>
vim的列编辑操作
查看>>
Linux驱动学习 —— 在/sys下面创建目录示例
查看>>
Linux下安装Android的adb驱动-解决不能识别的问题
查看>>
Why is the size of an empty class not zero in C++?
查看>>
海亮SC
查看>>
[Hibernate] - Generic Dao
查看>>
【Linux】一步一步学Linux——Linux系统常用快捷键(12) 待更新...
查看>>
Vue中computed和watch使用场景和方法
查看>>