Require failes for win32/clipboard

Hello, all!

In Win32::Clipboard version 0.4.3 (installed via the OneClick
intstaller 1.8.6-26), I get the following error:

clipboard.rb:25: uninitialized constant Win32::clipboard::Win32API
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
32:in gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 32:inrequire’
from test_clipboard.rb:1

Line 1 in test_clipboard.rb is just:
require ‘win32/clipboard’

I get the same problem with the test script included with the
Win32::Clipboard gem. Any ideas what’s wrong here?

I’ve found the solution myself: You have to require Win32API first.

This does the trick:

require ‘Win32API’
require ‘win32/clipboard’