C
Chauk-Mean P.
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 `<main>'
If I just remove the 'ILSSI' argument, this does not work either.
Thanks for any help.
Chauk-Mean.
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 `<main>'
If I just remove the 'ILSSI' argument, this does not work either.
Thanks for any help.
Chauk-Mean.