[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby and COM

Shri Borde [MS]

2/24/2007 12:09:00 PM

Hmm.. Does anyone know of a stable Ruby-COM bridge which will let one do
things like importing DLLs, querying for interfaces and calling their
methods? Is there anything stable available out there?

Or at least a possibility to call C++ code from Ruby resolving all this
CoInitilize(), STA and so on stuff?
2 Answers

Robert Klemme

2/24/2007 1:19:00 PM

0

On 24.02.2007 13:09, 11x22 wrote:
> Hmm.. Does anyone know of a stable Ruby-COM bridge which will let one do
> things like importing DLLs, querying for interfaces and calling their
> methods? Is there anything stable available out there?
>
> Or at least a possibility to call C++ code from Ruby resolving all this
> CoInitilize(), STA and so on stuff?

There are some libs:
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_m...

See also
http://www.google.com/search?q=...

I haven't used any of those but you can find examples by searching the
archives of this newsgroup / mailing list.

Kind regards

robert

Patrick Hurley

2/25/2007 2:22:00 AM

0

On 2/24/07, Robert Klemme <shortcutter@googlemail.com> wrote:
> On 24.02.2007 13:09, 11x22 wrote:
> > Hmm.. Does anyone know of a stable Ruby-COM bridge which will let one do
> > things like importing DLLs, querying for interfaces and calling their
> > methods? Is there anything stable available out there?

For just DLL, look no further than DL (in the standard library), for
OLE (a COM ancestor), check out Win32OLE (also in the standard
library). I have used both in the past.

Good luck
pth