next up previous contents
Next: luacom_isMember Up: luacom_GetIUnknown Previous: Return Values   Contents

Sample


-- Creates two LuaCOM objects for the same COM object
-- (a running instance of Microsoft Word(R)  )

word1 = luacom_GetObject("Word.Application")
word2 = luacom_GetObject("Word.Application")

-- These two userdata should be the same
unk1 = luacom_GetIUnknown(word1)
unk2 = luacom_GetIUnknown(word2)

assert(unk1 == unk2)


Vinicius da Silva Almendra 2003-06-04