sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by


      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
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement