Can someone point me to a simple example of calling a C++ function from Ruby?
I know how to do it with SWIG, but I'm trying to learn how to do it
without SWIG.
I'd like to do this under Windows and have the C++ code in a DLL.
No Windows APIs will be invoked. I just want to do something simple in
C++ like this

static void greet(const string& name) {
  cout << "Hello " << name << endl;
}

and invoke the greet function from Ruby.

I know how to build a DLL using VC++ 8.
I suspect the issue is that I don't have the right setup in my .cpp file.

--
R. Mark Volkmann
Partner, Object Computing, Inc.