From: "Chauk-Mean P." Date: 2008-01-10T18:32:42+09:00 Subject: Ruby 1.9.0 problem with DL.dlopen Hi, The following code runs with ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] on Windows : require 'dl' user32 = DL.dlopen('user32') msgbox = user32['MessageBoxA', 'ILSSI'] msgbox.call(0, "Hello", "Message Box", 0) A message box is displayed with just the OK button. If I run the same code with ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32], the following error is output : win_msgbox.rb:3:in `[]': wrong number of arguments(2 for 1) (ArgumentError) from win_msgbox.rb:3:in `
' If I just remove the 'ILSSI' argument, this does not work either. Thanks for any help. Chauk-Mean. -- Posted via http://www.ruby-forum.com/.