Using the win32api

A

antoine crouzi

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
 
L

Luis Lavena

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.
 
M

Michaile Wirachmat

Daer=2C Mr.David Willey=3B

Mr. David I dont know what can i do ? I have Ruby on rails V 1.7.2 =2C and =
my friend referencing for me using Win32 Ole and then i find your list.
Date: Tue=2C 19 Apr 2011 05:40:33 +0900
From: (e-mail address removed)
Subject: Re: Using the win32api
To: (e-mail address removed)
=20

=20
SketchUp provides it's own version of Ruby that you can't replace or
mix with a another installation.
=20
win32api is a Ruby C-extension and its file extension is ".so" so that
part is correct=2C you will find it on any installation of
RubyInstaller.
=20
However=2C if that file is missing from sketchup=2C you could try placing
in the valid Ruby paths of the tool=2C but I recommend not to=2C speciall= y
since things could explode on your face.
=20
AFAIK SketchUp uses an old version of Ruby and RubyInstaller has been
provided for modern versions=2C mixing them could lead to issues.
=20


My Nane : Cici WirachmatSignature powered by WiseStamp =
 
F

futar C.

re,

interestingly enough, if I copy the win32api.so in the plugin directory, =

I've got a different error :

127: La proc=C3=A9dure sp=C3=A9cifi=C3=A9e est introuvable. - Init_win3=
2api

[127: The specified procedure could not be found. - Init_win32api]

any ideas to make it work ?

-- =

Posted via http://www.ruby-forum.com/.=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top