Bugs item #5489, was opened at 2006-08-22 16:14
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5489&group_id=426

Category: Standard Library
Group: 1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Pavel Ivashkov (fuurin)
Assigned to: Nobody (None)
Summary: Duplicate Win32API class declarations

Initial Comment:
The Win32API has two implementations:
a) one native in ruby/src/ruby-1.8.4_2006-04-14/ext/Win32API/Win32API.c
b) and another in ruby/lib/ruby/1.8/dl/win32.rb

The following code raises ArgumentError "1 arguments are needed" when invoked with 'dl/win32':

require 'Win32API'
#require 'dl/win32'

sle = Win32API.new('kernel32', 'SetLastError', 'L', 'V')
gle = Win32API.new('kernel32', 'GetLastError', 'V', 'L')
sle.call(2)
puts gle.call()

I'm getting issues in my rails application because of this: even though I am explicitly require 'Win32API' my code falls into 'dl/win32'.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5489&group_id=426