Thu Jan 03 01:00:00 UTC 2008
Codegear Turbo C++ and Ruby
Embedding Ruby into a Turbo C++ (Borland C++ Builder) Application
I’m currently looking at bringing together two of my favourite pieces of desktop software – Ruby and Codegear Turbo C++. I’m still sorting my thoughts out, but here are the main links that will help in getting started. I will write up more details about this once I’ve figured it all out.
The ongoing thread in Ruby-talk that is discussing this issue
Link: http://www.ruby-forum.com/topic/137241
Specific to Borland Builder
Old threads that seem to have a few good pointers and gotchas. These are: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/73326 and very importantly: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/73397
About generally embedding Ruby
A thread that covers the idea and also links to the PickAxe online for this: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/71319
Ruby Embedded into C++
A great tutorial that goes into a lot of detail about the whole process. Link: http://metaeditor.sourceforge.net/embed/
SWIG
You could also use SWIG to connect up between a C/C++ program and Ruby. Link: http://www.swig.org/
As soon as I have the whole procedure worked out, I shall put up a post about the full procedure for integrating between the two of them.
Daniel said,
July 29th, 2008 at 02:19 AM
Hi Mohit,
I am interested in this topic, too. Are you still working on it?
Daniel
Mohit said,
August 2nd, 2008 at 05:41 PM
Yes, I am. Contact me: mohits at onghu <dot -separator> com
Cheers Mohit.