![](https://img-blog.csdnimg.cn/1279a668c429433993758ecde3106046.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
LUA
分享、交流Lua的使用
Finn Wang
这个作者很懒,什么都没留下…
展开
-
com调用excel后,进程未关闭解决方案
# COM调用结束后,进程未关闭 注册lua函数,在lua中调用该函数。 static int LuaCloseWindow(lua_State* L) { long hWnd = luaL_checkinteger(L, 1); unsigned long dwPid = 0; ::GetWindowThreadProcessId((HWND)hWnd, &dwPid); char cmdData[128] = { 0 }; sprintf_s(cmdData, "/c taskk.原创 2020-11-23 10:46:19 · 604 阅读 · 3 评论 -
C读取写入lua table常用接口
#lua_gettable/lua_settable/lua_rawget/lua_rawset/lua_rawgeti/lua_rawseti/lua_getfield/lua_setfield //lua_gettable lua_getglobal(L, "mytable") //<== push mytable lua_pushnumber(L, 1) //<== push key 1 lua_gettable(L, -2) //<== pop ke转载 2020-11-10 10:22:58 · 274 阅读 · 0 评论