2012年2月15日

Lua语言如何调用自己编写的C DLL -- 转

摘要: Lua语言如何调用自己编写的C DLL文件#include "lua.h"#include "lualib.h"#include "lauxlib.h"#include <windows.h>static int MyLuaDLL_HelloWorld(lua_State* L){ MessageBox(NULL,"Hello","World",MB_OK); return 0;}static int MyLuaDLL_average(lua_State *L){ int n = l 阅读全文

posted @ 2012-02-15 14:48 chuncn 阅读(7065) 评论(0) 推荐(0) 编辑

导航