[Backgroundrb-devel] Need to call C++ processing beast from backgroudrb

Douglass Turner douglass.turner at gmail.com
Fri Jun 16 13:09:43 EDT 2006

Thanks. Got some reading to do.


On 6/16/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
> Welcome Doug!
>         Thanks for the kind words. THe quick and easy way to call your c++
> binary is with system. OR even better IO.popen. IO.popen allows you
> to open the binary and connect to stdin and stdout so you can read
> and write to the binary. But both of these are hacks compared to the
> better way to do it. Ruby is extremely easy ot write C or C++
> extensions for, its one of the best features of the language. So I
> would suggest that you write a ruby/C++ extension for your imaging
> module and use that. There are a few ways to go about it. One way is
> swig, another way is just straight ruby/C++ extension and a third way
> is via DL. Google around and you will find much info on all three of
> these. I'm not familiar with your binary and I am not much of a C
> coder so I don't think I will be too much help but here's a nice link
> to get you started:
> http://www.onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html
> Cheers-
> -Ezra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060616/4c84609e/attachment.htm 

More information about the Backgroundrb-devel mailing list