Sample

LuaCOM

next up previous contents Next: releaseConnection Up: addConnection Previous: Return Values   Contents

Sample

obj = luacom.CreateObject("TEST.Test")
event_sink = {}
function event_sink:KeyPress(keynumber)
  print(keynumber)
end
event_obj = luacom.ImplInterface(
              event_sink, "TEST.Test", "ITestEvents")

cookie = luacom.addConnection(obj, event_obj)



Fabio Mascarenhas de Queiroz 2005-01-07