随笔分类 - lua
lua 及其 c api 记录备忘
摘要:自动转换\n分隔多行文本到字符串 function mTextToCString( ) if output then output:ClearAll() end local __allText_=editor:GetText() __allText_=string.gsub ( __allText_
阅读全文
摘要:参考:Lua数据文件与序列持久化_昔拉天使的博客-CSDN博客_lua 序列化 --~ package.path= string.gsub( package.path , 'LuaBin',rootPath) if output~=nil then output:ClearAll() end pac
阅读全文
摘要:lua 调用cmd dir 查看目录内容 1 function cmdDir( ph ) 2 --根据本地编码设置chcp值 utf8:65001 cn:936 3 cdirx = "cmd.exe /a /c && cd /d \""..ph.."\"&& chcp 65001 && dir" 4
阅读全文
摘要:// C# 调用dll 传递c回调函数模板格式// LuaInterface.LuaDLL;using LuaInterface; public partial class xxx { //... ... //C#默认情况下委托都是stdcall的调用方式,但可以通过UnmanagedFunctio
阅读全文
摘要:-- wxlua scintilla myph0="./?.dll;./?51.dll;E:/Program Files/Lua/5.1/?.dll;E:/Program Files/Lua/5.1/?51.dl\ l;E:/Program Files/Lua/5.1/clibs/?.dll;E:/
阅读全文
浙公网安备 33010602011771号