Sample

LuaCOM

next up previous contents Next: RegisterObject Up: RegisterObject Previous: Return Values   Contents

Sample

-- Lua registration code
function RegisterComponent()
  reginfo.VersionIndependentProgID = "TESTE.Teste"
  -- Adds version information
  reginfo.ProgID = reginfo.VersionIndependentProgID..".1"
  reginfo.TypeLib = "teste.tlb"
  reginfo.CoClass = "Teste"
  reginfo.ComponentName = "Test Component"
  reginfo.Arguments = "/Automation"
  reginfo.ScriptFile = "teste.lua"
  local res = luacom.RegisterObject(reginfo)
  return res
end



Fabio Mascarenhas de Queiroz 2005-01-07