Before we get started here, let me state that I am using Ruby
1.9.1 (I refuse to look back!), and that I have not tested this
solution on Ruby 1.8.6, but it should work there as well, though
I may have some 1.9-isms in my code. Should be easy enough to
spot.
I am working on writing an application in Ruby that can talk to
an Windows application that has an ActiveX COM Automation object
exposed. Ruby is basically the wrapper so that I can access the
application from the Linux side of the world. So, I am using
Ruby’s DRb to bridge those worlds because, after all, I am the
Linux Bloke!
Well, as you may have guessed, I ran into problems with this
approach. I simply could not call the COM objects from a call
initiated with DRb, though I could call them directly just fine.
After scratching my head a bit, I figured it out.
The win32ole module that runs on the Windows side of the world in
Ruby only …
[Read more]