calling ruby from a windows app?

  • Thread starter Egbert Teeselink
  • Start date
E

Egbert Teeselink

Hey,

I was looking around for scripting languages that'd enable me to add
some sort of scripting to my application when i stumbled into ruby. it
seems quite an excellent scripting language, however i've not managed
to be able to reference it from the outside much - i may be looking in
the wrong places.

I guess what I'm looking for is some ruby.dll that has
RunScript("gak.rb"); and InvokeMethod("moo",args); and all that, and
also ExposeObject("texgen",mytexgen->objdef); and a callback function
or something like that. Does anything like this exist? Or any way to
fake this behaviour without getting all too hacky?

Egbert
 
N

nobu.nokada

Hi,

At Fri, 7 Oct 2005 18:51:52 +0900,
Egbert Teeselink wrote in [ruby-talk:159497]:
I guess what I'm looking for is some ruby.dll that has
RunScript("gak.rb"); and InvokeMethod("moo",args); and all that, and
also ExposeObject("texgen",mytexgen->objdef); and a callback function
or something like that. Does anything like this exist? Or any way to
fake this behaviour without getting all too hacky?

See README.EXT file.
 
S

Stephen Kellett

I guess what I'm looking for is some ruby.dll that has
RunScript("gak.rb"); and InvokeMethod("moo",args); and all that, and
also ExposeObject("texgen",mytexgen->objdef); and a callback function
or something like that. Does anything like this exist? Or any way to
fake this behaviour without getting all too hacky?

The ruby documentation describes how to do this.
The PickAxe book (get version 2.0) also covers this.

Download the ruby source and take a look at ruby.h. This has all the
publicly accessible functions and defines for calling Ruby from C.

Stephen
 

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

Forum statistics

Threads
474,184
Messages
2,570,973
Members
47,528
Latest member
AnaHawley8

Latest Threads

Top