From: Matthew Bloch Date: 2002-03-16T04:36:36+09:00 Subject: RE: Plugging Ruby and COM together? Morris, Chris wrote: >> I'm entering unchartered territory with COM programming, and >> wanted to make >> a piece of Ruby library 'glue' to a proprietry COM interface. >> The Daves' >> book has got me writing Ruby glue code easily, but I'd like a little >> advice, or even better, example code on how to integrate COM >> objects into >> Ruby, if that's do-able. > > If you're just looking to use COM objects from Ruby, it's simple: > > require 'win32ole' > > ie = WIN32OLE.new('InternetExplorer.Application') > ie.visible = true > ie.gohome > > .. I use it all the time even with custom Windows Scripting Components -- > vbscript or jscript packaged up as a COM object. Blimey, that easy? Okay thankyou, it's more that I'm unfamiliar with COM terminology. Any recommendations on COM reading matter? I've got Petzold's book on Win32 programming which is pretty straightfoward, but COM doesn't get a look-in. -- Matthew