Sample

LuaCOM

next up previous contents Next: ProgIDfromCLSID Up: releaseConnection 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")
result = luacom.addConnection(obj, event_obj)
.
.
.
luacom.releaseConnection(obj)



Fabio Mascarenhas de Queiroz 2005-01-07