Next: ExposeObject
Up: NewObject
Previous: Return Values
Contents
Fabio Mascarenhas de Queiroz 2005-01-07
Sample
myobject = {} function myobject:MyMethod() print("My method!") end myobject.Property = "teste" obj, evt, err = luacom.NewObject(myobject, "TEST.Test") -- these are done via Lua myobject:MyMethod() print(myobject.Property) -- this call is done through COM luacom_obj:MyMethod() print(luacom_obj.Property) -- here we sink events evt:Event1()
Fabio Mascarenhas de Queiroz 2005-01-07