> I need to use legacy C++ code in a C++ environment on a Windows 2000 machine. > I would like to request your expertise converting this simple Ruby program to C++. > In am using wxWidgets in C++. It may be easier to embed this Ruby code into C++ > however, it seems unnecessary to embed an entire language (namely Ruby into C++) > for such a simple program. > > The following Ruby code is a whittled down version of > http://rubyforge.org/frs/?group_id=287. This code was written using > Ruby version 1.8.1-13 the accompanying wxRuby on a Windows 2000 machine. If you need to use C++ code from within Ruby, take a look at SWIG: http://www.swig.org/. If you want to translate an existing wxRuby code into C++... I don't know of any automated tool that'll help you do that, but the wxRuby interface is fairly similar to the wxWidgets calls. HTH, Assaph