Re: Perl equivalent of Ruby/DL?

2004-01-07 Thread Rob Dixon
David Garamond wrote:

 Ruby/DL is a Ruby module that enables one to load a .DLL/.so and start
 using exported functions available in the DLL. It's a nice alternative
 of using an external library without messing with XS or writing real C
 files. Ruby/DL has been included in the standard Ruby distribution since
 1.8.

   http://ttsky.net/ruby/ruby-dl.html

 I wonder if CPAN has something similar to this.

Hi Dave.

You could take a look at Win32::API.

HTH,

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Perl equivalent of Ruby/DL?

2004-01-07 Thread Jenda Krynicky
From: David Garamond [EMAIL PROTECTED]
 Ruby/DL is a Ruby module that enables one to load a .DLL/.so and start
 using exported functions available in the DLL. It's a nice alternative
 of using an external library without messing with XS or writing real C
 files. Ruby/DL has been included in the standard Ruby distribution
 since 1.8.
 
   http://ttsky.net/ruby/ruby-dl.html
 
 I wonder if CPAN has something similar to this.

Either Win32::API or FFI.

See for example Win32::FileOp for examples of Win32::API's usage.

Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Perl equivalent of Ruby/DL?

2004-01-07 Thread David Garamond
Rob Dixon wrote:
Ruby/DL is a Ruby module that enables one to load a .DLL/.so and start
using exported functions available in the DLL. It's a nice alternative
of using an external library without messing with XS or writing real C
files. Ruby/DL has been included in the standard Ruby distribution since
1.8.
 http://ttsky.net/ruby/ruby-dl.html

I wonder if CPAN has something similar to this.
Hi Dave.

You could take a look at Win32::API.
I've found the module, it's called C::DynaLink by John Tobey. Nifty! I'm 
gonna give it a try.

Thanks,
--
dave
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response



Perl equivalent of Ruby/DL?

2004-01-06 Thread David Garamond
Ruby/DL is a Ruby module that enables one to load a .DLL/.so and start 
using exported functions available in the DLL. It's a nice alternative 
of using an external library without messing with XS or writing real C 
files. Ruby/DL has been included in the standard Ruby distribution since 
1.8.

 http://ttsky.net/ruby/ruby-dl.html

I wonder if CPAN has something similar to this.

--
dave


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response