Embedded Ruby in a MSVC++ project?

B

Ben Giddings

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top