• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

DLL callback to ruby

Scheduled Pinned Locked Moved Developers' Forum
41 Posts 4 Posters 10.5k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Dan Rathbun
    last edited by 21 Jul 2017, 19:54


    You will need to do some studying:


    1. Read and bookmark this post:

    [Info] C/C++ Ruby extensions & SketchUp plugins

    1. You will need to download the Ruby C source, as your DLL code must:

    %(#404080)[include "ruby.h"]

    1. Read the old "Pick-Axe" book's chapter on writing a Ruby extension.

    Programming Ruby: Extending Ruby

    1. Take note of the Ruby C-side functions:
    • rb_eval_string( *string_to_eval* )* rb_funcall
      ... described in section "Evaluating Ruby Expressions in C"
    1. ❗ okay, a dedicated C side Ruby book is also now available:
    • http://media.pragprog.com/titles/ruby3/ext_ruby.pdf

    I'm not here much anymore.

    1 Reply Last reply Reply Quote 0
    • 1
    • 2
    • 3
    • 3 / 3
    3 / 3
    • First post
      41/41
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement