I am working with Ruby in sketchup 2017 in windows. The following code gives me error. the ruby version in sketchup 2017 is 2.2.4. Earlier with older sketchup I was using DL and there I dont get a problem, it is only when I have to use fiddle with a newer version of ruby I am getting this error. I tried with some other 64 bit user made library but I still have the problem there.
code below
require 'Win32API'
require 'fiddle'
require 'fiddle/import'
require 'fiddle/types'
require 'sketchup.rb'
require "fiddle"
require "fiddle/import"
module MEMCLIENT
extend Fiddle::Importer
dlload("C:\\Users/infib/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins
/MSPhysics/memclient.dll")
extern "int valinit(int)"
extern "float readval(int)"
end
error
Error Loading File C:/Users/infib/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/MSPhysics/control_panel.rb
Error: #<Fiddle::DLError: can't load C:\Users/infib/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/MSPhysics/memclient.dll>
C:/Program Files/SketchUp/SketchUp 2017/Tools/RubyStdLib/fiddle/import.rb:85:in `rescue in block in dlload'