# Handling .dll file using ruby in windows XP

**URL:** <https://rubytalk.org/t/handling-dll-file-using-ruby-in-windows-xp/59883>\
**Category:** ruby-talk\
**Created:** [2 September 2010 05:16 UTC](https://rubytalk.org/t/handling-dll-file-using-ruby-in-windows-xp/59883 "2010-09-02T05:16:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandra\_Sekhar](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@Chandra\_Sekhar](https://rubytalk.org/u/Chandra_Sekhar)\
**Post date:** [2 September 2010 05:16 UTC](https://rubytalk.org/t/handling-dll-file-using-ruby-in-windows-xp/59883/1 "2010-09-02T05:16:07Z")

</div>

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 via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Luis\_Lavena1](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luis\_Lavena1](https://rubytalk.org/u/Luis_Lavena1)\
**Post date:** [2 September 2010 18:45 UTC](https://rubytalk.org/t/handling-dll-file-using-ruby-in-windows-xp/59883/2 "2010-09-02T18:45:14Z")

</div>

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/](http://wiki.github.com/ffi/ffi/)

> **···**
>
> 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?
> 
> --  
> Luis Lavena
