Forum: Ruby Handling .dll file using ruby in windows XP

Posted by Chandra Sekhar (chandrasekhar29)
on 2010-09-02 07:15
Hi,

I am new to Ruby. I want to use a dll with RUBY to change/modify the
frequency value in a signal generator.

Is it possible to open dll file in ruby to read/write the value in it?


Thanks,
Chandra
Posted by Luis Lavena (luislavena)
on 2010-09-02 20:45
(Received via mailing list)
On Sep 2, 2:16 am, Chandra Sekhar <chandu.c...@gmail.com> wrote:
> Hi,
>
> I am new to Ruby. I want to use a dll with RUBY to change/modify the
> frequency value in a signal generator.
>
> Is it possible to open dll file in ruby to read/write the value in it?
>

While you can alter the contents of a binary file (DLL), I presume is
not what you want as will render the DLL useless afterwards.

Please read the API documentation of the DLL you want to use and take
a look to Ruby FFI interface for writing down a module that interfaces
it.

http://wiki.github.com/ffi/ffi/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.