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.
Mon Apr 30 17:22:00 UTC 2007
svn:ignore for Visual Studio and Codegear Turbo C++
I have just gone through setting up Subversion and was looking at which directories and files need to be ignored by the client when it uploads the project. I expect that I shall need to set these properties for every project that I work with, so I decided to put up the list here so that it’s easy to find it the next time I need it. If it helps you, that’s a bonus :)
If you are using TortoiseSVN, you can set these properties by right clicking on the name of your project sandbox directory and then following the TortoiseSVN>Properties. In the form that pops up, click on “Add” and for property name, select “svn:ignore” from the drop down list. Then, in the memo field, just copy and paste the set of files to ignore. Check “Apply property recursively” to apply it to all directories.
Visual Studio 2005
*.obj *.exe *.pdb *.ncb *.res *.pch *.idb
In addition, you can also ask it to ignore the directories in which it creates the executable code. Since I’m using Visual Studio for Windows Mobile development, this will usually be a directory such as “Pocket PC 2003 (ARMV4)” which will have files that are created during the build process. When you do your first “Commit” with these directories there, just right click on each of the directory names in the TortoiseSVN list and ask it to ignore it.
Turbo C++ Professional
*.obj *.~* *.dsk *.d *.local *.bcc32pch *.res *.tds *.exe *.bbc *.bbd *.bbl *.bbp
In addition, you can also ask it to ignore the directories in which it creates the executable code. Since I’m using Turbo C++ for Windows PC development, this will usually be a directory such as “Debug_build” and “Release_build” which will have files that are created during the build process. Also, you can ask it to ignore the “__history” directory if you don’t care about the revisions that Turbo C++ maintains. When you do your first “Commit” with these directories there, just right click on each of these directory names in the TortoiseSVN list and ask it to ignore it.