Ruby and COM

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_minor=Win32

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

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

Kind regards

  robert

···

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?

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

···

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?