swerg / qlua-luacom Goto Github PK
View Code? Open in Web Editor NEWluacom Library is cloned for QUIK
License: Other
luacom Library is cloned for QUIK
License: Other
* What is LuaCOM? ----------------- LuaCOM is an add-on library to the Lua language <http://www.lua.org> that allows Lua programs to use and implement objects that follow the Microsoft's Component Object Model (COM) specification and the ActiveX technology for property access and method calls. LuaCOM is implemented as a C++ library, and can be statically linked to an application or loaded at runtime. LuaCOM is provided with its source code and the makefiles required to build it. * Project Page -------------- The project page and latest source code is available at: http://lua-users.org/wiki/LuaCom - project page https://github.com/davidm/luacom - latest source code * Installing --------------------------- The easiest way to install LuaCOM is via the binary in Lua for Windows: http://code.google.com/p/luaforwindows/ You can also install LuaCOM via LuaRocks ("luarocks install luacom") or LuaDist ("luadist install luacom"). See the INSTALL file for installation details for installing from source. * Compatibility --------------- LuaCOM has been tested on most versions of Windows, under both MinGW C++ and Microsoft Visual Studio C++ compilers (2005, 2008, 2010), as well as under Cygwin (1.7) with g++. It has also been compiled against libwine on Linux, although tests failed. * Bugs and Comments ------------------------ Send bug reports or comments to the location specified on http://lua-users.org/wiki/LuaCom . * Copyright ----------- LuaCOM is freely available for both academic and commercial purposes under the MIT license. See the COPYRIGHT file for details. * Authors ------------------------ LuaCOM was originally designed and implemented by Vinicius Almendra and Renato Cerqueira at Tecgraf, the Computer Graphics Technology Group of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro in Brazil). Tecgraf is a laboratory of the Department of Computer Science. Later maintainers include Fabio Mascarenhas, Ignacio Burgueño and David Manura. ------------------------------------------------------------------------ Renato Cerqueira Research Staff Member Tecgraf/PUC-Rio, Brazil email: [email protected] http://www.tecgraf.puc-rio.br/~rcerq Vinicius Almendra Research Staff Member Tecgraf/PUC-Rio, Brazil email: [email protected] Fabio Mascarenhas Research Staff Member Tecgraf/PUC-Rio, Brazil email: [email protected] [email protected] http://www.tecgraf.puc-rio.br/~rcerq/luacom/ - older page ------------------------------------------------------------------------
Вариант 1:
Работает в Lua5.3, но не работает в Lua5.4
local luacom = require("luacom")
local conn = luacom.CreateObject("ADODB.Connection")
local connString = "Provider=sqloledb;Data Source='WNIX';Initial Catalog='db_app';Integrated Security=SSPI; Min Pool Size=10"
conn:Open(connString)
Вариант 2:
А так работает в Lua5.4
require("luacom")
local conn = luacom.CreateObject("ADODB.Connection")
local connString = "Provider=sqloledb;Data Source='WNIX';Initial Catalog='db_app';Integrated Security=SSPI; Min Pool Size=10"
conn:Open(connString)"
Разобраться с Вариантом 1.
На нём выдаёт ошибку "attempt to index a boolean value "
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.