Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3096 > unrolled thread
| Started by | antoine crouzi <bourinax@yopmail.com> |
|---|---|
| First post | 2011-04-18 06:13 -0500 |
| Last post | 2011-04-19 07:02 -0500 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.ruby
Using the win32api antoine crouzi <bourinax@yopmail.com> - 2011-04-18 06:13 -0500
Re: Using the win32api Luis Lavena <luislavena@gmail.com> - 2011-04-18 13:37 -0700
Re: Using the win32api/Open file Michaile Wirachmat <wirachmatc@live.com> - 2011-04-18 20:47 -0500
Re: Using the win32api "futar C." <bourinax@yopmail.com> - 2011-04-19 04:45 -0500
Re: Using the win32api "futar C." <bourinax@yopmail.com> - 2011-04-19 07:02 -0500
| From | antoine crouzi <bourinax@yopmail.com> |
|---|---|
| Date | 2011-04-18 06:13 -0500 |
| Subject | Using the win32api |
| Message-ID | <bdf6302ceb249eaa3dc7d09019f96be1@ruby-forum.com> |
Hi all, I'm trying to use the win32api, in the Sketchup ruby API. then loading the package with require "win32api" I get the following error : no such file to load -- win32api I'm using this page as a reference : http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_windows.html. Am I doing something wrong ? do I need to install a gem before using the api ? I'm on windows with ruby 1.8.6, installed via the windows binary package. I think it might be a problem with the ruby paths. I have search for a file called win32api in the ruby installation directory, there is a .so file, but no .rb file. Thanks, Futar -- Posted via http://www.ruby-forum.com/.
[toc] | [next] | [standalone]
| From | Luis Lavena <luislavena@gmail.com> |
|---|---|
| Date | 2011-04-18 13:37 -0700 |
| Message-ID | <297a826f-e8be-4229-bfc9-1373a18e8aa2@j9g2000prj.googlegroups.com> |
| In reply to | #3096 |
On Apr 18, 8:13 am, antoine crouzi <bouri...@yopmail.com> wrote: > Hi all, > > I'm trying to use the win32api, in the Sketchup ruby API. then loading > the package with > > require "win32api" > > I get the following error : > > no such file to load -- win32api > > I'm using this page as a reference :http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_windows.html. > > Am I doing something wrong ? do I need to install a gem before using the > api ? > > I'm on windows with ruby 1.8.6, installed via the windows binary > package. I think it might be a problem with the ruby paths. > > I have search for a file called win32api in the ruby installation > directory, there is a .so file, but no .rb file. > SketchUp provides it's own version of Ruby that you can't replace or mix with a another installation. win32api is a Ruby C-extension and its file extension is ".so" so that part is correct, you will find it on any installation of RubyInstaller. However, if that file is missing from sketchup, you could try placing in the valid Ruby paths of the tool, but I recommend not to, specially since things could explode on your face. AFAIK SketchUp uses an old version of Ruby and RubyInstaller has been provided for modern versions, mixing them could lead to issues. -- Luis Lavena
[toc] | [prev] | [next] | [standalone]
| From | Michaile Wirachmat <wirachmatc@live.com> |
|---|---|
| Date | 2011-04-18 20:47 -0500 |
| Subject | Re: Using the win32api/Open file |
| Message-ID | <BLU143-W33886D349D2688E0BA8FA1BE900@phx.gbl> |
| In reply to | #3120 |
Daer, Mr.David Willey; Mr. David I dont know what can i do ? I have Ruby on rails V 1.7.2 , and my friend referencing for me using Win32 Ole and then i find your list. > Date: Tue, 19 Apr 2011 05:40:33 +0900 > From: luislavena@gmail.com > Subject: Re: Using the win32api > To: ruby-talk@ruby-lang.org > > On Apr 18, 8:13 am, antoine crouzi <bouri...@yopmail.com> wrote: > > Hi all, > > > > I'm trying to use the win32api, in the Sketchup ruby API. then loading > > the package with > > > > require "win32api" > > > > I get the following error : > > > > no such file to load -- win32api > > > > I'm using this page as a reference :http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_windows.html. > > > > Am I doing something wrong ? do I need to install a gem before using the > > api ? > > > > I'm on windows with ruby 1.8.6, installed via the windows binary > > package. I think it might be a problem with the ruby paths. > > > > I have search for a file called win32api in the ruby installation > > directory, there is a .so file, but no .rb file. > > > > SketchUp provides it's own version of Ruby that you can't replace or > mix with a another installation. > > win32api is a Ruby C-extension and its file extension is ".so" so that > part is correct, you will find it on any installation of > RubyInstaller. > > However, if that file is missing from sketchup, you could try placing > in the valid Ruby paths of the tool, but I recommend not to, specially > since things could explode on your face. > > AFAIK SketchUp uses an old version of Ruby and RubyInstaller has been > provided for modern versions, mixing them could lead to issues. > > -- > Luis Lavena > My Nane : Cici WirachmatSignature powered by WiseStamp
[toc] | [prev] | [next] | [standalone]
| From | "futar C." <bourinax@yopmail.com> |
|---|---|
| Date | 2011-04-19 04:45 -0500 |
| Message-ID | <c692929b3b2f721975c76bc8a961da67@ruby-forum.com> |
| In reply to | #3096 |
re, interestingly enough, if I copy the win32api.so in the plugin directory, I've got a different error : 127: La procédure spécifiée est introuvable. - Init_win32api [127: The specified procedure could not be found. - Init_win32api] any ideas to make it work ? -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | "futar C." <bourinax@yopmail.com> |
|---|---|
| Date | 2011-04-19 07:02 -0500 |
| Message-ID | <23b714bc33fcfcadcbd5b8bcc84c6b5d@ruby-forum.com> |
| In reply to | #3096 |
solution : require 'Win32API' :) -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web