LuaCOM 1.3b2 User Manual

The LuaCOM 1.3b2 User Manual explains how to use the LuaCOM library to access and implement COM objects from Lua scripts.


LuaCOM 1.3b2 User Manual - cover page
Brand
LuaCOM
Document type
User Manual
Language
English
Pages
64
File format
PDF
File size
210 KB
Published
01 October, 2026
Updated
01 October, 2026
MD5 checksum
493A91CD682AAF3B83D9C0B7F8DA6879

About this manual

The LuaCOM library is an add‑on for the Lua programming language that enables Lua programs to create, control, and automate Microsoft Component Object Model (COM) objects. This manual provides a complete reference, tutorial, and implementation guide for developers who need to work with COM objects, type libraries, and automation interfaces from Lua.

It covers installation, API usage, type conversion rules, event handling, and advanced topics such as building COM servers and OLE controls. The document also lists known limitations, bug reports, and future enhancements, making it a valuable resource for both newcomers and experienced Lua developers.

What's inside

  • Introduction
  • Tutorial
  • LuaCOM Elements
  • Implementing COM objects and controls in Lua
  • Release Information
  • Reference
  • Credits

Specifications

Supported Lua versionsLua 5 and Lua 4
COM initialization requirementCOM must be initialized before lua_open and terminated after the last lua_close

Frequently asked questions

How do I create a COM object using LuaCOM?

Use the luacom.CreateObject function with the object's ProgID, e.g., `word = luacom.CreateObject("Word.Application")`.

How are COM objects released in LuaCOM?

Objects are released automatically by Lua’s garbage collector, but you can force release by setting the object to nil and calling `collectgarbage()`.

Download PDF (210 KB)