摘要: cmake c_compiler could not be found CXX_Compiler could not be foind 必须安装VS2017下的组件 Windows8.1 SDK 和 UCRT SDK 阅读全文
posted @ 2020-10-14 14:19 齐齐大佬998 阅读(995) 评论(0) 推荐(0)
摘要: 在做不同来源的db数据合并新db时,遇见的 lua 事务无法处理附加数据库操作 --[[ AnsiToUTF8(InputString):将传入的字符串转为UTF8字符串,并将其返回 PRINT(InputString):将传入的字符串在日志输出中打印 FileDelete(FilePath):删除 阅读全文
posted @ 2020-09-24 15:06 齐齐大佬998 阅读(824) 评论(0) 推荐(0)
摘要: 1 2 socket = require ("socket") 3 print(socket._VERSION) 4 5 if not socket then 6 print("load socket module failed.") 7 else 8 print("success load soc 阅读全文
posted @ 2020-09-12 11:18 齐齐大佬998 阅读(1250) 评论(0) 推荐(0)
摘要: http = require("socket.http")local request_body = [[login=user&password=123]]local response_body = {} local res,code,response_headers = http.request{ 阅读全文
posted @ 2020-09-11 14:24 齐齐大佬998 阅读(949) 评论(0) 推荐(0)
摘要: 引用; https://blog.csdn.net/techfield/article/details/82896403 阅读全文
posted @ 2020-09-10 13:40 齐齐大佬998 阅读(214) 评论(0) 推荐(0)
摘要: function foo(...) print(" 普通方法 ") for k,v in ipairs{...} do print(k,v) end print(" 方法1 ") local args = {...} for i = 1, #args do print(i, args[i]) end 阅读全文
posted @ 2020-08-27 17:45 齐齐大佬998 阅读(293) 评论(0) 推荐(0)
摘要: 在Lua5.1版本中: pack 函数不存在 unpack 存在 并且是在全局环境_G里面 在Lua5.2版本中: 新增 pack函数 pack 和 unpack 都存在table库下面 阅读全文
posted @ 2020-08-27 17:42 齐齐大佬998 阅读(785) 评论(0) 推荐(0)
摘要: lua/lsqlite3.lua(Line=111): LuaSQL: unable to open database file.. 使用的Lua5.1.4 原因 :编码不匹配 解决方案: require("lc") lc.a2u(str) 阅读全文
posted @ 2020-07-21 21:01 齐齐大佬998 阅读(420) 评论(0) 推荐(0)
摘要: 1、创建一个Visual C++的Empty Project,如果需要支持Windows XP将Platform Toolset设置为Visual Studio 2013 - Windows XP (v120_xp)。 2、Configuration Type设置为Dynamic Library ( 阅读全文
posted @ 2020-06-23 11:51 齐齐大佬998 阅读(389) 评论(0) 推荐(0)
摘要: 1. Microsoft Visual Studio 2013 - Platform Toolset(right mouse click on the project) -> 属性 -> 配置属性 -> 平台工具集 阅读全文
posted @ 2020-06-23 10:15 齐齐大佬998 阅读(197) 评论(0) 推荐(0)