DLL callback to ruby
-
You will need to do some studying:
- Read and bookmark this post:
[Info] C/C++ Ruby extensions & SketchUp plugins
- You will need to download the Ruby C source, as your DLL code must:
%(#404080)[include "ruby.h"]
- Read the old "Pick-Axe" book's chapter on writing a Ruby extension.
Programming Ruby: Extending Ruby
- Take note of the Ruby C-side functions:
rb_eval_string( *string_to_eval* )
*rb_funcall
... described in section "Evaluating Ruby Expressions in C"
- okay, a dedicated C side Ruby book is also now available:
Advertisement