From: Philliam Auriemma Date: 2010-01-30T06:00:05+09:00 Subject: Re: newbie question: Accessiong non-Windows DLL's On Jan 29, 12:50 pm, Rich Maniscalco wrote: > Hello, > > I am very new to Ruby, as in about 1 week new.  General Ruby programming > is going well.  However, I am having trouble accessing functions in > non-Windows DLL's.  We have custom DLL's used to talk to test equipment. > These DLL's are created in C using Visual C++.  They work fine with the > original C program.  I'm want to use Ruby scripts that access these > DLL's.  The documentation gives examples of accessing Windows libraries, > which worked for me.  But my stuff is giving me the "`initialize': > GetProcAddress:" error.  I also created a very basic DLL which just > prints "Hello World" and had the same Ruby error. > > Is there a pointer to some documentation/code examples I can read?  Or > can someone tell me what I'm doing wrong? > > I'm using Ruby 1.8.6 on Windows XP and Cygwin bash shell. > > Thanks, > >   Rich > -- > Posted viahttp://www.ruby-forum.com/. I think you may be able to use the Win32API module for that. http://www.rubytips.org/2008/05/13/accessing-windows-api-from-ruby-using-win32api-library/