Next: Termination
Up: 4.4.7 Initialization and Termination
Previous: 4.4.7 Initialization and Termination
Contents
Fabio Mascarenhas de Queiroz 2005-01-07
Initialization
If you are implementing your own server, instead of using the builtin support, your server
must call the COM initialization functions (OleInitialize or CoInitialize) before LuaCOM is
started. Other initialization task is the implementation and
exposition of the COM objects. This task can be greatly simplified
using the C/C++ LuaCOM API function luacom_detectAutomation
.
If you want to use the builtin support, the only initialization necessary is to call
the DetectAutomation
API function at the end of the script that implements your objects,
passing a table containing methods to register and expose your objects.
Fabio Mascarenhas de Queiroz 2005-01-07