From: Rich Kilmer Date: 2002-08-28T10:32:57+09:00 Subject: RE: Ruby developers: help push RPKG development and usage forward!! (it is like CPAN.pm, only Ruby) http://kt-www.jaist.ac.jp/~ttate/ruby/ruby-dl.html Example of calling message_box on win32: require 'dl' User32 = DL.dlopen("user32") Kernel32 = DL.dlopen("kernel32") MB_OK = 0 MB_OKCANCEL = 1 message_box = User32['MessageBoxA', 'ILSSI'] r,rs = message_box.call(0, 'ok?', 'error', MB_OKCANCEL) case r when 1 print("OK!\n") when 2 print("Cancel!\n") end __END__ Notice...pure Ruby...no C...dynamically loading and calling .dlls. Cool eh? And it is part of Ruby 1.7.2 (in CVS). -Rich Kilmer > -----Original Message----- > From: Massimiliano Mirra [mailto:list@NOSPAMchromatic-harp.com] > Sent: Tuesday, August 27, 2002 4:20 PM > To: ruby-talk ML > Subject: Re: Ruby developers: help push RPKG development and > usage forward!! (it is like CPAN.pm, only Ruby) > > > On Tue, Aug 27, 2002 at 09:39:32PM +0900, Rich Kilmer wrote: > > So, if one could describe the .dll/.so files that were needed by > > having a block of code that tries to load the .so/.dll files (using > > Ruby/DL) > > > > Thoughts? > > Not really a thought, but... what is Ruby/DL? > > Feel free to RTFM me to the appropriate place. :-) > > Massimiliano >