From: Ben Giddings Date: 2003-09-19T04:10:43+09:00 Subject: Embedded Ruby in a MSVC++ project? Hey all, I'm working on a project in MS Visual C++, unfortunately the code is completely tied to that environment and that IDE so I'm trapped. That C++ code has a GUI which loads a bunch of data, then runs a given algorithm on each record, deciding whether it passes a test or not. The algorithm has more than 100 variables with certain interdependencies, and what I'm working on now is a way of trying to tune the variables to get the best result. This parameter tuning sounds much easier in Ruby than it does in C, so I'd like to use a Ruby extension to do it. Now last night I struggled through the documentation, examples, and messages and managed to build a C program that uses a Ruby extension on my iBook in OS X. It wasn't easy, but once I figured out what I was doing it worked fine. But since Windows (and MSVC++) is so different from OS X and other Unixish OSes I don't know how to start with embedding Ruby in this environment. Could someone give me a hand doing the same thing in MSVC++, provided it is possible? Ben