Next:
Contents
 
Contents
LuaCOM User Manual
(Version 1.3)
Vinicius Almendra - Renato Cerqueira - Fabio Mascarenhas
Contents
1. Introduction
1.1 Features
1.2 Who Should Read What (or About the Manual)
Some information about samples
2. Tutorial
2.1 Using The LuaCOM library
2.2 Locating COM Objects
2.3 Creating Objects
2.4 Getting Help about an Object
2.5 Methods and Properties
2.6 Releasing Objects
3. LuaCOM Elements
3.1 LuaCOM API
3.2 LuaCOM objects
3.2.1 Object Disposal
3.3 Automation binding
3.3.1 Implementing
dispinterfaces
in Lua
3.3.2 Using Methods and Properties
3.3.2.1 Extensible interfaces
3.3.2.2 Default methods
3.3.2.3 Generic LuaCOM objects
3.3.2.4 Property Access in Lua
3.3.3 Connection Points: handling events
3.3.4 Parameter Passing
3.3.4.1 Calling COM from Lua
3.3.4.2 Calling Lua from COM
3.3.5 Exception Handling
3.4 Type Conversion
3.4.1 Boolean values
3.4.2 Pointers to
IDispatch
and LuaCOM objects
3.4.3 Pointers to
IUnknown
3.4.4 Arrays and Tables
3.4.5
CURRENCY
type
3.4.6
DATE
type
3.4.7 Variants
3.4.8 Error Handling
3.5 Other Objects
3.5.1 The Enumerator Object
3.5.2 The Connection Point Container Object
3.5.3 The Typelib and Typeinfo Objects
4. Implementing COM objects and controls in Lua
4.1 Introduction
4.2 Is it really useful?
4.3 Terminology
4.4 Building a LuaCOM COM server
4.4.1 Specify the component
4.4.2 Objects to be exported
4.4.3 Building the type library
4.4.4 Registration Information
4.4.5 Registering the Component Object
4.4.6 Implementing and Exposing the Component
4.4.7 Initialization and Termination
Initialization
Termination
4.5 Running the COM server
4.6 Generating Events
4.7 Full Example
4.8 Building a Lua OLE control
5. Release Information
5.1 Limitations
5.2 Known bugs
5.3 Future Enhancements
5.4 Important issues about LuaCOM
5.4.1 Problems instantiating COM objects
5.4.2 Releasing COM objects from memory
5.4.3 Receiving events
5.4.4 Extensible Interfaces
5.4.5 Visual Basic© issue
5.5 History
Version 1.3
Version 1.2
Version 1.1
Version 1.0
Version 0.9.2
Version 0.9.1
6. Reference
6.1 The C/C++ API
luacom_open
Prototype
Description
Sample
luacom_close
Prototype
Description
Sample
luacom_detectAutomation
Prototype
Description
Sample
luacom_IDispatch2LuaCOM
Prototype
Description
Sample
6.2 The Lua Standard API
CreateObject
Use
Description
Parameters
Return Values
Sample
Connect
Use
Description
Parameters
Return Values
Sample
ImplInterface
Use
Description
Parameters
Return Values
Sample
ImplInterfaceFromTypelib
Use
Description
Parameters
Return Values
Sample
GetObject
Use
Description
Parameters
Return Values
Sample
NewObject/NewControl
Use
Description
Parameters
Return Values
Sample
ExposeObject
Use
Description
Parameters
Return Values
Sample
RegisterObject
Use
Description
Parameters
Return Values
Sample
UnRegisterObject
Use
Description
Parameters
Return Values
Sample
addConnection
Use
Description
Parameters
Return Values
Sample
releaseConnection
Use
Description
Parameters
Return Values
Sample
ProgIDfromCLSID
Use
Description
Parameters
Return Values
Sample
CLSIDfromProgID
Use
Description
ShowHelp
Use
Description
Parameters
Return Values
Sample
GetIUnknown
Use
Description
Parameters
Return Values
Sample
isMember
Use
Description
Parameters
Return Values
Sample
StartLog
Use
Description
Parameters
Return Values
Sample
EndLog
Use
Description
Parameters
Return Values
Sample
GetEnumerator
Use
Description
Parameters
Return Values
Sample
6.3 Lua Extended API
pairs
GetType
CreateLocalObject
CreateInprocObject
LoadConstants
FillTypeInfo
FillTypeLib
6.4 Enumerator Object
Methods
6.5 Type Library Object
Methods
6.6 Type Information Object
Methods
7. Credits
About this document ...
Fabio Mascarenhas de Queiroz 2005-06-06