15,471
社区成员
发帖
与我相关
我的任务
分享
int WINAPI wWinMain(HINSTANCE hinstExe, HINSTANCE, PTSTR pszCmdLine, int) {
lua_State *L = lua_open(); /* create state */
luaL_openlibs(L); /* open libraries */
if (luaL_loadfile(L, "E:\\e.lua") || lua_pcall(L, 0, 0,0)){
//error(L, "cannot run configuration file: %s",lua_tostring(L, -1));
//set_error_msg(lua_tostring(L, -1));
}else{
//set_error_msg("it is OK!");
}
const char *p=lua_tostring(L, -1);
lua_close(L);
return(0);
}