[exerb-dev:0405] Re: Win32API with 3.0.0-preview6

Back to archive index

kimura kimur****@guc*****
2003年 12月 3日 (水) 10:19:45 JST


高岡さん初めまして、木村と申します。

>  ところで、preview6 で
> 
> -----
> require 'Win32API'
> 
> mb = Win32API.new('user32', 'MessageBox', %w(p p p i), 'i')
> mb.call(0, 'test', 'test', 0)
> -----
> 
> を実行ファイルにすると、実行時に
> 
> test.rb:3:in `initialize': wrong argument type Win32API (expected Class) (TypeError)
> 	from test.rb:3:in `new'
> 	from test.rb:3
> 
> というエラーが出るのですが、Win32API はまだ使えないということでしょう
> か?
> 

私も興味があり試してみたのですが、こちらでは同じコードが動いています。
rubyのバージョンやライブラリに矛盾が出ているのではないでしょうか?。

-----------------
kimur****@guc*****
-----------------





exerb-developer メーリングリストの案内
Back to archive index