Forum: Ruby Can Ruby play with COM ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gishu Pillai (Guest)
on 2006-06-08 13:13
Hi,
Can Ruby talk with any of the MS Tech? I didn't
bring the pickaxe book to office today.
I was planning to do an internal web app using
ruby on rails. However this app has to talk with
Starteam (a Borland product). I don't know if they
have a ruby API exposed (chances are slim!) but they
have a COM interface.
Can I call it via Ruby code?

Also if this is gonna make me tear my hair out, please
let me know that too...
Thanks,
Gishu
Dave B. (Guest)
on 2006-06-08 14:21
(Received via mailing list)
Gishu Pillai wrote:
> Hi,
> Can Ruby talk with any of the MS Tech? I didn't
> bring the pickaxe book to office today.
> I was planning to do an internal web app using
> ruby on rails. However this app has to talk with
> Starteam (a Borland product). I don't know if they
> have a ruby API exposed (chances are slim!) but they
> have a COM interface.
> Can I call it via Ruby code?

Yes. The library's called WIN32OLE.

There's some info on the RubyGarden wiki here:
http://wiki.rubygarden.org/Ruby/page/show/RubyAndCOM

In particular, if you're familiar with scripting Excel with VBA, you'll
probably find the ScriptingExcel page enlightening.

Here's an online version of the API doco (not that complete or useful):
http://www.ruby-doc.org/stdlib/libdoc/Win32API/rdo...

> Also if this is gonna make me tear my hair out, please
> let me know that too...

I haven't torn my hair out; it's pretty straightforward.

Cheers,
Dave
Gishu Pillai (Guest)
on 2006-06-08 15:57
Dave B. wrote:

>
> Yes. The library's called WIN32OLE.
>
> There's some info on the RubyGarden wiki here:
> http://wiki.rubygarden.org/Ruby/page/show/RubyAndCOM

Thanks, I knew Ruby won't let me down :)
Once again thanks for all the links Dave.
-- Gishu
This topic is locked and can not be replied to.